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.000896/0.000896, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 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.0009369/0.0009369, allocations: 173.7 kB / 24.91 MB, free: 9.176 MB / 18.57 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 0.9148/0.9148, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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 1.613e-06/1.613e-06, allocations: 0 / 273.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.915e-05, allocations: 2.312 kB / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002889/0.002908, allocations: 2.222 MB / 275.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.004196, allocations: 0.7474 MB / 276.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.004339, allocations: 7.938 kB / 276.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.00456, allocations: 51.45 kB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.004755, allocations: 43.59 kB / 276.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.005018, allocations: 107.6 kB / 276.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.005268, allocations: 235.7 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.005462, allocations: 82.61 kB / 277 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.005704, allocations: 139.6 kB / 277.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.005836, allocations: 83.7 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.005867, allocations: 16 kB / 277.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-05/0.005967, allocations: 39.97 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.845e-05/0.006025, allocations: 51.83 kB / 277.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.006082, allocations: 71.77 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.006316, allocations: 191.2 kB / 277.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.006318, allocations: 0 / 277.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.006318, allocations: 0 / 277.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.006326, allocations: 0 / 277.6 MB, free: 13.18 MB / 266.7 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.000483/0.006809, allocations: 452.1 kB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.006845, allocations: 12.03 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.006959, allocations: 36.91 kB / 278 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.007137, allocations: 193.2 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.007157, allocations: 16.88 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.007184, allocations: 16.38 kB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.007445, allocations: 207.7 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.00746, allocations: 192 / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.007476, allocations: 8.375 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.908e-05/0.007505, allocations: 16.44 kB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.007609, allocations: 73.39 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005757/0.008184, allocations: 0.548 MB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.008311, allocations: 93.28 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.918e-05/0.00836, allocations: 40.84 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.384e-05/0.008444, allocations: 15.98 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.00847, allocations: 34.56 kB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.873e-06/0.008472, allocations: 0 / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005621/0.009034, allocations: 380.5 kB / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.009063, allocations: 55.41 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.009183, allocations: 183.5 kB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.009198, allocations: 29.7 kB / 279.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/0.009267, allocations: 140.4 kB / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.887e-05/0.009316, allocations: 87.25 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.283e-05/0.009368, allocations: 57.56 kB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.93e-05/0.009458, allocations: 334.7 kB / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.412e-05/0.009492, allocations: 27.98 kB / 280.6 MB, free: 9.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.539e-05/0.009547, allocations: 63.38 kB / 280.6 MB, free: 9.906 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.009651, allocations: 105.1 kB / 280.7 MB, free: 9.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.009652, allocations: 0 / 280.7 MB, free: 9.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001382/0.00979, allocations: 133.6 kB / 280.8 MB, free: 9.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.009801, allocations: 4 kB / 280.9 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.009807, allocations: 8 kB / 280.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.009819, allocations: 0 / 280.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.009959, allocations: 59.89 kB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.009963, allocations: 4.062 kB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.594e-05/0.01001, allocations: 11.98 kB / 280.9 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.01002, allocations: 12 kB / 280.9 MB, free: 9.559 MB / 266.7 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 7.507e-05/0.0101, allocations: 128.5 kB / 281.1 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.01012, allocations: 15.98 kB / 281.1 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000183/0.0103, allocations: 154.2 kB / 281.2 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.01031, allocations: 4 kB / 281.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.01031, allocations: 0 / 281.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.01031, allocations: 3.984 kB / 281.2 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003795/0.01069, allocations: 436.7 kB / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01069, allocations: 0 / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.01083, allocations: 55.91 kB / 281.7 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.01084, allocations: 0 / 281.7 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.01085, allocations: 4 kB / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.01085, allocations: 4 kB / 281.7 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.01085, allocations: 0 / 281.7 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.01108, allocations: 288.6 kB / 282 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.01112, allocations: 27.84 kB / 282 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.01113, allocations: 8.031 kB / 282.1 MB, free: 8.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.736e-05/0.01119, allocations: 8 kB / 282.1 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.215e-05/0.01124, allocations: 23.95 kB / 282.1 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.01125, allocations: 3.938 kB / 282.1 MB, free: 8.352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.867e-05/0.01129, allocations: 58.98 kB / 282.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01129, allocations: 0 / 282.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001619/0.01145, allocations: 51.94 kB / 282.2 MB, free: 8.242 MB / 266.7 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.0001073/0.01156, allocations: 84.41 kB / 282.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001398/0.0117, allocations: 117.2 kB / 282.4 MB, free: 8.031 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.0117, allocations: 0 / 282.4 MB, free: 8.031 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.938e-05/0.01176, allocations: 64.75 kB / 282.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001682/0.01193, allocations: 27.77 kB / 282.5 MB, free: 7.938 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.01258, allocations: 0.5091 MB / 283 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.01268, allocations: 96.28 kB / 283.1 MB, free: 7.289 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.504e-05/0.01274, allocations: 21.95 kB / 283.1 MB, free: 7.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.078e-05/0.01282, allocations: 83.36 kB / 283.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01282, allocations: 0 / 283.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of Templates: time 0.003903/0.01672, allocations: 1.963 MB / 285.2 MB, free: 5.25 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.778070309665054]