Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 195.1 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 93.28 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1929/0.1929, allocations: 45.15 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.486e-06/8.736e-06, allocations: 4 kB / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1157, allocations: 63.25 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3369/0.4527, allocations: 89.02 MB / 0.5907 GB, free: 13.92 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.453, allocations: 61.03 kB / 0.5908 GB, free: 13.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01445/0.4674, allocations: 4.682 MB / 0.5953 GB, free: 10.06 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.4675, allocations: 4 kB / 0.5953 GB, free: 10.05 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000789/0.4683, allocations: 0.5289 MB / 0.5959 GB, free: 9.492 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.4684, allocations: 12.03 kB / 0.5959 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.4686, allocations: 55.61 kB / 0.5959 GB, free: 9.426 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.469, allocations: 253.9 kB / 0.5962 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.469, allocations: 8 kB / 0.5962 GB, free: 9.145 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.4691, allocations: 23.89 kB / 0.5962 GB, free: 9.121 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002987/0.4694, allocations: 126.3 kB / 0.5963 GB, free: 9.039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003759/0.4698, allocations: 219.5 kB / 0.5965 GB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.4698, allocations: 4 kB / 0.5965 GB, free: 8.836 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.4699, allocations: 3.906 kB / 0.5965 GB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.4699, allocations: 4 kB / 0.5965 GB, free: 8.828 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.4716, allocations: 1.253 MB / 0.5978 GB, free: 7.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.4719, allocations: 175.5 kB / 0.5979 GB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.472, allocations: 73.25 kB / 0.598 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.4721, allocations: 4 kB / 0.598 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.4721, allocations: 42.12 kB / 0.598 GB, free: 7.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.4721, allocations: 1.094 kB / 0.598 GB, free: 7.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.001945/0.4741, allocations: 1.328 MB / 0.5993 GB, free: 5.895 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/0.4741, allocations: 136.6 kB / 0.5995 GB, free: 5.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.4743, allocations: 187.2 kB / 0.5996 GB, free: 5.562 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.4744, allocations: 29.64 kB / 0.5997 GB, free: 5.527 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.057e-05/0.4745, allocations: 164.3 kB / 0.5998 GB, free: 5.375 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.16e-05/0.4745, allocations: 106.2 kB / 0.5999 GB, free: 5.285 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.4746, allocations: 0 / 0.5999 GB, free: 5.285 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4747, allocations: 341.6 kB / 0.6003 GB, free: 4.953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.4748, allocations: 62.44 kB / 0.6003 GB, free: 4.918 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.475, allocations: 199 kB / 0.6005 GB, free: 4.695 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.4752, allocations: 97.02 kB / 0.6006 GB, free: 4.629 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4752, allocations: 0 / 0.6006 GB, free: 4.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004719/0.4757, allocations: 291.3 kB / 0.6009 GB, free: 4.387 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.4757, allocations: 4 kB / 0.6009 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4757, allocations: 4 kB / 0.6009 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.4757, allocations: 8 kB / 0.6009 GB, free: 4.371 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.4762, allocations: 115.7 kB / 0.601 GB, free: 4.262 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.4762, allocations: 7.938 kB / 0.601 GB, free: 4.254 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.4765, allocations: 35.92 kB / 0.601 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.4765, allocations: 23.48 kB / 0.6011 GB, free: 4.199 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.4766, allocations: 112.6 kB / 0.6012 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.4768, allocations: 27.72 kB / 0.6012 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.006e-05/0.4768, allocations: 31.7 kB / 0.6012 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.4769, allocations: 4 kB / 0.6012 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.4769, allocations: 11.91 kB / 0.6012 GB, free: 4.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4769, allocations: 0 / 0.6012 GB, free: 4.023 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.4781, allocations: 0.8598 MB / 0.6021 GB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.4781, allocations: 4 kB / 0.6021 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.4785, allocations: 91.44 kB / 0.6022 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.4786, allocations: 4 kB / 0.6022 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.4786, allocations: 4 kB / 0.6022 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.433e-06/0.4786, allocations: 7.922 kB / 0.6022 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4786, allocations: 4 kB / 0.6022 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006969/0.4793, allocations: 0.6812 MB / 0.6029 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.4794, allocations: 109 kB / 0.603 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.4795, allocations: 0 / 0.603 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.4798, allocations: 19.98 kB / 0.603 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.302e-05/0.4799, allocations: 30.77 kB / 0.603 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.4799, allocations: 10.48 kB / 0.603 GB, free: 2.277 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001225/0.48, allocations: 145.6 kB / 0.6032 GB, free: 2.156 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004623/0.4805, allocations: 56 kB / 0.6032 GB, free: 2.102 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001578/0.4806, allocations: 103.1 kB / 0.6033 GB, free: 1.992 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003741/0.481, allocations: 193.6 kB / 0.6035 GB, free: 1.852 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.481, allocations: 4.188 kB / 0.6035 GB, free: 1.848 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.4812, allocations: 97.3 kB / 0.6036 GB, free: 1.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.4817, allocations: 34.91 kB / 0.6036 GB, free: 1.754 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.483, allocations: 0.6783 MB / 0.6043 GB, free: 1.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.4835, allocations: 0.8023 MB / 0.6051 GB, free: 248 kB / 394.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4835, allocations: 4 kB / 0.6051 GB, free: 244 kB / 394.7 MB Notification: Performance of Templates: time 0.006188/0.4897, allocations: 2.411 MB / 0.6074 GB, free: 13.87 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches