Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001619/0.001619, allocations: 172.2 kB / 8.149 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001238/0.001238, allocations: 97.89 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2544/0.2544, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.604e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2612, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.4101, allocations: 86.16 MB / 0.5495 GB, free: 12.92 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4104, allocations: 63.97 kB / 0.5496 GB, free: 12.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02679/0.4372, allocations: 5.918 MB / 0.5554 GB, free: 6.902 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.4373, allocations: 12 kB / 0.5554 GB, free: 6.891 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.00127/0.4386, allocations: 0.5805 MB / 0.5559 GB, free: 6.266 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4387, allocations: 19.95 kB / 0.5559 GB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.4388, allocations: 43.44 kB / 0.556 GB, free: 6.203 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.4393, allocations: 279.2 kB / 0.5563 GB, free: 5.887 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.4393, allocations: 15.98 kB / 0.5563 GB, free: 5.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.559e-05/0.4394, allocations: 27.98 kB / 0.5563 GB, free: 5.844 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006453/0.4401, allocations: 189.5 kB / 0.5565 GB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008038/0.4409, allocations: 306.3 kB / 0.5568 GB, free: 5.344 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.731e-05/0.4409, allocations: 0 / 0.5568 GB, free: 5.344 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.041e-05/0.441, allocations: 4 kB / 0.5568 GB, free: 5.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.441, allocations: 12 kB / 0.5568 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.4433, allocations: 1.011 MB / 0.5578 GB, free: 4.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005483/0.4439, allocations: 233 kB / 0.558 GB, free: 4.023 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.4443, allocations: 146.6 kB / 0.5581 GB, free: 3.871 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.649e-05/0.4444, allocations: 4.75 kB / 0.5581 GB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.4444, allocations: 34.56 kB / 0.5582 GB, free: 3.824 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 3.146e-06/0.4444, allocations: 4 kB / 0.5582 GB, free: 3.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.005026/0.4494, allocations: 2.12 MB / 0.5602 GB, free: 1.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.4496, allocations: 110 kB / 0.5604 GB, free: 1.305 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.4498, allocations: 165.9 kB / 0.5605 GB, free: 1.137 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.4499, allocations: 29.7 kB / 0.5605 GB, free: 1.102 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.45, allocations: 227.5 kB / 0.5608 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.4502, allocations: 193.1 kB / 0.5609 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.572e-05/0.4502, allocations: 0 / 0.5609 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4504, allocations: 326.8 kB / 0.5613 GB, free: 368 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.4507, allocations: 105.3 kB / 0.5614 GB, free: 264 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.4511, allocations: 199.5 kB / 0.5615 GB, free: 24 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004151/0.4516, allocations: 136.9 kB / 0.5617 GB, free: 15.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4516, allocations: 0 / 0.5617 GB, free: 15.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001406/0.453, allocations: 459.7 kB / 0.5621 GB, free: 15.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.453, allocations: 7.281 kB / 0.5621 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.4531, allocations: 11.94 kB / 0.5621 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000547/0.4536, allocations: 110.5 kB / 0.5622 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000827/0.4545, allocations: 108 kB / 0.5623 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005319/0.4598, allocations: 4.376 MB / 0.5666 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003984/0.4603, allocations: 11.98 kB / 0.5666 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.002e-05/0.4603, allocations: 20.06 kB / 0.5666 GB, free: 10.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001428/0.4605, allocations: 46.98 kB / 0.5667 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.4606, allocations: 31.62 kB / 0.5667 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.4608, allocations: 37.58 kB / 0.5668 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.4608, allocations: 7.906 kB / 0.5668 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/0.4608, allocations: 4 kB / 0.5668 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4608, allocations: 3.984 kB / 0.5668 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.4638, allocations: 1.181 MB / 0.5679 GB, free: 9.051 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.4638, allocations: 4.125 kB / 0.5679 GB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009508/0.4648, allocations: 111.9 kB / 0.568 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005194/0.4653, allocations: 90.52 kB / 0.5681 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.4654, allocations: 3.938 kB / 0.5681 GB, free: 8.836 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004516/0.4699, allocations: 3.913 MB / 0.5719 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.47, allocations: 0 / 0.5719 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001855/0.4718, allocations: 0.8896 MB / 0.5728 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.472, allocations: 108.7 kB / 0.5729 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.083e-05/0.4721, allocations: 0 / 0.5729 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.4725, allocations: 15.98 kB / 0.5729 GB, free: 3.488 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.4726, allocations: 31.86 kB / 0.573 GB, free: 3.457 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.4727, allocations: 16 kB / 0.573 GB, free: 3.441 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001621/0.4729, allocations: 136.4 kB / 0.5731 GB, free: 3.309 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008948/0.4738, allocations: 96 kB / 0.5732 GB, free: 3.215 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001829/0.474, allocations: 103.1 kB / 0.5733 GB, free: 3.102 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.4753, allocations: 0.6062 MB / 0.5739 GB, free: 2.465 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.4753, allocations: 3.938 kB / 0.5739 GB, free: 2.461 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.4764, allocations: 0.4972 MB / 0.5744 GB, free: 1.934 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006846/0.4771, allocations: 36.58 kB / 0.5744 GB, free: 1.898 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.4796, allocations: 0.916 MB / 0.5753 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007028/0.4804, allocations: 0.8603 MB / 0.5761 GB, free: 52 kB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4804, allocations: 0 / 0.5761 GB, free: 52 kB / 410.7 MB Notification: Performance of Templates: time 0.0164/0.4968, allocations: 9.009 MB / 0.5849 GB, free: 7.031 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches