Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 75.19 kB / 21.24 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 150.1 kB / 24.49 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 173.4 MB / 201.1 MB, free: 12.71 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 42.97 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1088, allocations: 52.17 MB / 371.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00487/0.1136, allocations: 2.091 MB / 373.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1156, allocations: 0.6661 MB / 374.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004076/0.116, allocations: 7.938 kB / 374.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003659/0.1164, allocations: 47.52 kB / 374.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.1168, allocations: 43.59 kB / 374.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.1172, allocations: 99.77 kB / 374.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.1175, allocations: 239.7 kB / 374.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.1178, allocations: 79.94 kB / 374.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.118, allocations: 91.58 kB / 374.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.1182, allocations: 103.5 kB / 375 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.1182, allocations: 16 kB / 375 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.784e-05/0.1183, allocations: 28 kB / 375.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1184, allocations: 67.75 kB / 375.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1185, allocations: 83.53 kB / 375.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.1189, allocations: 242.8 kB / 375.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1189, allocations: 4 kB / 375.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.119, allocations: 0 / 375.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.119, allocations: 3.938 kB / 375.5 MB, free: 3.426 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001083/0.12, allocations: 485.5 kB / 375.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.1201, allocations: 12.02 kB / 376 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1202, allocations: 36.75 kB / 376 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.1205, allocations: 190 kB / 376.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.1206, allocations: 16.88 kB / 376.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.788e-05/0.1206, allocations: 31.88 kB / 376.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.1211, allocations: 251.6 kB / 376.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1212, allocations: 0 / 376.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.1212, allocations: 11.98 kB / 376.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.44e-05/0.1212, allocations: 16.44 kB / 376.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.1217, allocations: 193.9 kB / 376.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.1229, allocations: 0.6977 MB / 377.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/0.1232, allocations: 170.5 kB / 377.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.1235, allocations: 108.8 kB / 377.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.062e-05/0.1236, allocations: 8.359 kB / 377.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.1236, allocations: 38.5 kB / 377.7 MB, free: 1.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.1236, allocations: 4 kB / 377.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001506/0.1251, allocations: 0.6337 MB / 378.3 MB, free: 396 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.1251, allocations: 55.34 kB / 378.4 MB, free: 328 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.1253, allocations: 199.8 kB / 378.6 MB, free: 112 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.1254, allocations: 33.64 kB / 378.6 MB, free: 72 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.1255, allocations: 148.5 kB / 378.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.276e-05/0.1255, allocations: 91.16 kB / 378.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.174e-05/0.1256, allocations: 49.7 kB / 378.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1258, allocations: 330.8 kB / 379.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.126, allocations: 83.94 kB / 379.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.1262, allocations: 127.3 kB / 379.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004278/0.1266, allocations: 210.3 kB / 379.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1267, allocations: 0 / 379.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005583/0.1272, allocations: 277.3 kB / 379.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.1272, allocations: 6.812 kB / 379.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1272, allocations: 4 kB / 379.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.1273, allocations: 64 / 379.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003044/0.1276, allocations: 67.89 kB / 380 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.1276, allocations: 4 kB / 380 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.1277, allocations: 11.98 kB / 380 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.1277, allocations: 11.98 kB / 380 MB, free: 14.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001738/0.1279, allocations: 145.7 kB / 380.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.162e-05/0.1279, allocations: 19.86 kB / 380.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006546/0.1286, allocations: 302.9 kB / 380.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.1286, allocations: 4 kB / 380.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1286, allocations: 0 / 380.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1286, allocations: 0 / 380.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.1297, allocations: 0.5928 MB / 381.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1297, allocations: 0 / 381.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.13, allocations: 67.95 kB / 381.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.13, allocations: 32 / 381.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.13, allocations: 12 kB / 381.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.13, allocations: 3.938 kB / 381.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.13, allocations: 0 / 381.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008283/0.1309, allocations: 482.5 kB / 381.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.051e-05/0.1309, allocations: 35.89 kB / 381.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.05e-05/0.131, allocations: 4 kB / 381.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.1311, allocations: 19.92 kB / 381.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.1312, allocations: 27.91 kB / 381.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.1312, allocations: 4 kB / 381.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001129/0.1313, allocations: 141.5 kB / 381.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1313, allocations: 0 / 381.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1316, allocations: 44 kB / 381.9 MB, free: 12.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001788/0.1318, allocations: 107.2 kB / 382 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005185/0.1323, allocations: 211.6 kB / 382.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1323, allocations: 4.125 kB / 382.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.1326, allocations: 119.7 kB / 382.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.1329, allocations: 27.84 kB / 382.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.134, allocations: 0.6938 MB / 383 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001555/0.1342, allocations: 154.8 kB / 383.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001596/0.1344, allocations: 45.92 kB / 383.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.921e-05/0.1344, allocations: 28.48 kB / 383.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1344, allocations: 0 / 383.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of Templates: time 0.005927/0.1404, allocations: 1.894 MB / 385.2 MB, free: 9.371 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.592860023956746]