Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.521/1.521, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 47.92 kB / 373.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1228, allocations: 53.33 MB / 426.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00404/0.1268, allocations: 2.223 MB / 429 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.1283, allocations: 0.7517 MB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.1285, allocations: 11.88 kB / 429.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002105/0.1287, allocations: 43.53 kB / 429.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002268/0.1289, allocations: 51.58 kB / 429.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003314/0.1292, allocations: 99.77 kB / 430 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003414/0.1296, allocations: 227.7 kB / 430.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.1298, allocations: 87.61 kB / 430.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.1301, allocations: 103.6 kB / 430.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.1303, allocations: 115.4 kB / 430.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.1303, allocations: 20 kB / 430.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.302e-05/0.1304, allocations: 32 kB / 430.6 MB, free: 476 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.118e-05/0.1305, allocations: 55.77 kB / 430.6 MB, free: 420 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1306, allocations: 107.3 kB / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.131, allocations: 258.7 kB / 431 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.131, allocations: 0 / 431 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.131, allocations: 0 / 431 MB, free: 52 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.131, allocations: 0 / 431 MB, free: 52 kB / 350.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.2439/0.3748, allocations: 0.5422 MB / 431.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3749, allocations: 10.16 kB / 431.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.375, allocations: 32.86 kB / 431.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.3753, allocations: 262.4 kB / 431.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.3754, allocations: 16.12 kB / 431.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-05/0.3754, allocations: 22.72 kB / 431.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.3759, allocations: 260.5 kB / 432.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.3759, allocations: 2.625 kB / 432.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.376, allocations: 14.58 kB / 432.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-05/0.376, allocations: 12.94 kB / 432.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004844/0.3765, allocations: 192.8 kB / 432.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.3776, allocations: 0.8162 MB / 433.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/0.3779, allocations: 177.7 kB / 433.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.3781, allocations: 96.88 kB / 433.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.785e-05/0.3782, allocations: 90.23 kB / 433.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.3782, allocations: 34.38 kB / 433.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.462e-06/0.3782, allocations: 0 / 433.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001486/0.3797, allocations: 0.7274 MB / 434.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.3797, allocations: 53.97 kB / 434.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.3799, allocations: 221.5 kB / 434.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.3799, allocations: 25.7 kB / 434.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.918e-05/0.38, allocations: 150.6 kB / 434.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.622e-05/0.3801, allocations: 87.05 kB / 434.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.588e-05/0.3801, allocations: 46.84 kB / 434.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.59e-05/0.3802, allocations: 336.2 kB / 435.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.3804, allocations: 87.14 kB / 435.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.3806, allocations: 123.5 kB / 435.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00041/0.381, allocations: 217.9 kB / 435.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.381, allocations: 0 / 435.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005139/0.3815, allocations: 281.6 kB / 435.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3816, allocations: 6.859 kB / 435.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3816, allocations: 1.031 kB / 435.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.3816, allocations: 2.344 kB / 435.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/0.3819, allocations: 58.34 kB / 435.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3819, allocations: 3.141 kB / 435.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.382, allocations: 20.95 kB / 435.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.382, allocations: 12.69 kB / 435.9 MB, free: 9.098 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.0001057/0.3821, allocations: 149.4 kB / 436.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.3822, allocations: 23.77 kB / 436.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005986/0.3828, allocations: 293.9 kB / 436.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3828, allocations: 3.375 kB / 436.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3828, allocations: 0 / 436.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.3828, allocations: 3.812 kB / 436.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.3838, allocations: 0.6763 MB / 437.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3838, allocations: 0 / 437.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.3841, allocations: 63.62 kB / 437.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3841, allocations: 1.062 kB / 437.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3841, allocations: 7.891 kB / 437.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3842, allocations: 1.781 kB / 437.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3842, allocations: 6.594 kB / 437.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008201/0.385, allocations: 490.1 kB / 437.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.399e-05/0.3851, allocations: 116.8 kB / 437.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.3851, allocations: 6.531 kB / 437.8 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.3852, allocations: 13.75 kB / 437.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.3853, allocations: 22.7 kB / 437.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.3853, allocations: 6.516 kB / 437.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000126/0.3855, allocations: 159.5 kB / 438 MB, free: 7.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3855, allocations: 0 / 438 MB, free: 7.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.3858, allocations: 49.5 kB / 438 MB, free: 7.875 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.0001427/0.3859, allocations: 110.3 kB / 438.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005373/0.3865, allocations: 222.2 kB / 438.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3865, allocations: 0 / 438.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.3867, allocations: 110.6 kB / 438.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.387, allocations: 27.02 kB / 438.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.3881, allocations: 0.6932 MB / 439.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3883, allocations: 0.7628 MB / 439.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001456/0.3885, allocations: 48.39 kB / 440 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.824e-05/0.3886, allocations: 27.91 kB / 440 MB, free: 6.527 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3886, allocations: 0 / 440 MB, free: 6.527 MB / 350.1 MB Notification: Performance of Templates: time 0.007086/0.3956, allocations: 2.053 MB / 442.1 MB, free: 6.379 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.181633327156305]