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.001774/0.001774, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001544/0.001544, allocations: 153.4 kB / 24.26 MB, free: 176 kB / 18.57 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.502/1.502, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 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 1.413e-06/1.413e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.065e-05/3.206e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004159/0.004191, allocations: 2.106 MB / 269.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.005659, allocations: 0.6658 MB / 270.1 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.005789, allocations: 11.88 kB / 270.1 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002143/0.006003, allocations: 47.52 kB / 270.1 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002206/0.006224, allocations: 43.59 kB / 270.2 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.006557, allocations: 107.6 kB / 270.3 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.006899, allocations: 243.7 kB / 270.5 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.007124, allocations: 75.95 kB / 270.6 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.007373, allocations: 127.7 kB / 270.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.007551, allocations: 87.69 kB / 270.8 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-05/0.007601, allocations: 16 kB / 270.8 MB, free: 3.191 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.58e-05/0.007697, allocations: 31.98 kB / 270.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.299e-05/0.00779, allocations: 51.81 kB / 270.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.007892, allocations: 71.77 kB / 271 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004217/0.008314, allocations: 251 kB / 271.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.008317, allocations: 4 kB / 271.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.008318, allocations: 0 / 271.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.008324, allocations: 0 / 271.2 MB, free: 2.789 MB / 250.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.001031/0.009355, allocations: 481.5 kB / 271.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.009398, allocations: 8.031 kB / 271.7 MB, free: 2.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.009512, allocations: 48.75 kB / 271.8 MB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.009849, allocations: 201.8 kB / 272 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.009879, allocations: 16.88 kB / 272 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-05/0.009939, allocations: 28.33 kB / 272 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005503/0.01049, allocations: 259.7 kB / 272.3 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.0105, allocations: 4 kB / 272.3 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.01053, allocations: 8 kB / 272.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.045e-05/0.01056, allocations: 12.5 kB / 272.3 MB, free: 1.676 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004915/0.01105, allocations: 193.8 kB / 272.5 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.0123, allocations: 0.6977 MB / 273.2 MB, free: 0.75 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000406/0.01271, allocations: 174.5 kB / 273.3 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.01294, allocations: 100.8 kB / 273.4 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.94e-05/0.01302, allocations: 4 kB / 273.4 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.01306, allocations: 38.94 kB / 273.5 MB, free: 428 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.192e-06/0.01306, allocations: 0 / 273.5 MB, free: 428 kB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.001657/0.01472, allocations: 0.66 MB / 274.1 MB, free: 15.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.01477, allocations: 55.41 kB / 274.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.01501, allocations: 191.8 kB / 274.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.01504, allocations: 29.7 kB / 274.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.01518, allocations: 152.4 kB / 274.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.5e-05/0.01528, allocations: 91.23 kB / 274.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.979e-05/0.01537, allocations: 49.69 kB / 274.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.01556, allocations: 330.8 kB / 275 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.01577, allocations: 83.94 kB / 275.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.01603, allocations: 123.4 kB / 275.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000462/0.01649, allocations: 214.2 kB / 275.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.01649, allocations: 4 kB / 275.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006146/0.0171, allocations: 285.3 kB / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.01713, allocations: 4 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.01713, allocations: 4.062 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.01716, allocations: 4 kB / 275.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.01745, allocations: 63.83 kB / 275.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.01746, allocations: 4 kB / 275.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.01759, allocations: 20.05 kB / 275.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.01761, allocations: 8 kB / 275.8 MB, free: 13.96 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 0.0001799/0.01779, allocations: 149.7 kB / 276 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.01786, allocations: 23.86 kB / 276 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008917/0.01875, allocations: 290.9 kB / 276.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.01876, allocations: 4 kB / 276.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.01876, allocations: 0 / 276.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.01877, allocations: 3.984 kB / 276.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.01994, allocations: 0.5968 MB / 276.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.01995, allocations: 0 / 276.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.02024, allocations: 55.91 kB / 276.9 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.02024, allocations: 0 / 276.9 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.02027, allocations: 11.98 kB / 276.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.02027, allocations: 0 / 276.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.02027, allocations: 0 / 276.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009484/0.02122, allocations: 0.4911 MB / 277.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.28e-05/0.0213, allocations: 31.91 kB / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.02134, allocations: 8 kB / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.02149, allocations: 11.98 kB / 277.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.975e-05/0.02158, allocations: 31.83 kB / 277.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.0216, allocations: 8 kB / 277.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001513/0.02175, allocations: 137.5 kB / 277.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02175, allocations: 0 / 277.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003127/0.02206, allocations: 52 kB / 277.7 MB, free: 11.99 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.0002213/0.02229, allocations: 103.2 kB / 277.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005672/0.02285, allocations: 215.7 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.02285, allocations: 0 / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.0231, allocations: 107.8 kB / 278.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.02347, allocations: 38.66 kB / 278.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.02461, allocations: 0.6069 MB / 278.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.0248, allocations: 158.7 kB / 278.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.02494, allocations: 57.83 kB / 279 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.856e-05/0.02502, allocations: 24.5 kB / 279 MB, free: 10.64 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.02502, allocations: 4 kB / 279 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Templates: time 0.006198/0.03121, allocations: 1.909 MB / 280.9 MB, free: 8.738 MB / 266.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/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.707820800016634]