Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded") [: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 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 184.2 kB / 8.155 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001237/0.001237, allocations: 92.06 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.052e-05/1.066e-05, allocations: 4 kB / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2411, allocations: 47.55 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.3596, allocations: 76.76 MB / 438.6 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.3599, allocations: 67.97 kB / 438.7 MB, free: 9.277 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01649/0.3764, allocations: 3.461 MB / 442.1 MB, free: 5.855 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.3765, allocations: 4 kB / 442.1 MB, free: 5.852 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008207/0.3773, allocations: 476.5 kB / 442.6 MB, free: 5.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.3774, allocations: 8.031 kB / 442.6 MB, free: 5.336 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.06e-05/0.3775, allocations: 23.72 kB / 442.6 MB, free: 5.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.3779, allocations: 231.3 kB / 442.8 MB, free: 5.043 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.3779, allocations: 8 kB / 442.8 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.378, allocations: 12 kB / 442.9 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003517/0.3783, allocations: 100.8 kB / 443 MB, free: 4.926 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004367/0.3788, allocations: 179 kB / 443.1 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.3788, allocations: 3.906 kB / 443.1 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.3788, allocations: 0 / 443.1 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.3789, allocations: 8 kB / 443.1 MB, free: 4.727 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.3804, allocations: 0.6543 MB / 443.8 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.3807, allocations: 92.67 kB / 443.9 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3809, allocations: 60.86 kB / 443.9 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.3809, allocations: 0 / 443.9 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.3809, allocations: 42.55 kB / 444 MB, free: 3.824 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.165e-06/0.3809, allocations: 0 / 444 MB, free: 3.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.00195/0.3829, allocations: 0.7394 MB / 444.7 MB, free: 2.992 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.383, allocations: 59.41 kB / 444.8 MB, free: 2.922 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.3832, allocations: 148.3 kB / 444.9 MB, free: 2.773 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3832, allocations: 25.7 kB / 445 MB, free: 2.742 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3834, allocations: 194.7 kB / 445.1 MB, free: 2.551 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.525e-05/0.3835, allocations: 82.66 kB / 445.2 MB, free: 2.469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.197e-05/0.3835, allocations: 0 / 445.2 MB, free: 2.469 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.3836, allocations: 322.8 kB / 445.5 MB, free: 2.145 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.3838, allocations: 48 kB / 445.6 MB, free: 2.098 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.384, allocations: 80.28 kB / 445.7 MB, free: 2.004 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.3842, allocations: 59.92 kB / 445.7 MB, free: 1.945 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3842, allocations: 224 / 445.7 MB, free: 1.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006244/0.3849, allocations: 208.5 kB / 445.9 MB, free: 1.734 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3849, allocations: 11.94 kB / 445.9 MB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3849, allocations: 0 / 445.9 MB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002176/0.3851, allocations: 36.83 kB / 446 MB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004152/0.3856, allocations: 51.91 kB / 446 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.3871, allocations: 1.299 MB / 447.3 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.3874, allocations: 8 kB / 447.3 MB, free: 220 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.3874, allocations: 8.062 kB / 447.3 MB, free: 212 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.296e-05/0.3875, allocations: 37.58 kB / 447.4 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.344e-05/0.3876, allocations: 25.31 kB / 447.4 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.953e-05/0.3877, allocations: 21.78 kB / 447.4 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3877, allocations: 0 / 447.4 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.3877, allocations: 4 kB / 447.4 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.3878, allocations: 0 / 447.4 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.3891, allocations: 0.5808 MB / 448 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3892, allocations: 0 / 448 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.3896, allocations: 51.81 kB / 448.1 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002202/0.3899, allocations: 36.91 kB / 448.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.3899, allocations: 4 kB / 448.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.3915, allocations: 1.308 MB / 449.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3915, allocations: 4 kB / 449.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008342/0.3924, allocations: 398.5 kB / 449.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/0.3925, allocations: 92.92 kB / 449.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/0.3925, allocations: 0 / 449.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.3928, allocations: 7.906 kB / 449.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.3929, allocations: 15.97 kB / 449.9 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.3929, allocations: 11.56 kB / 449.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001276/0.393, allocations: 115.3 kB / 450 MB, free: 13.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004441/0.3935, allocations: 48 kB / 450.1 MB, free: 13.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00018/0.3937, allocations: 100.8 kB / 450.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006503/0.3943, allocations: 247.3 kB / 450.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3944, allocations: 0 / 450.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.3948, allocations: 190 kB / 450.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.3953, allocations: 31.5 kB / 450.6 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.397, allocations: 0.5372 MB / 451.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004953/0.3975, allocations: 0.7741 MB / 452 MB, free: 11.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3975, allocations: 0 / 452 MB, free: 11.29 MB / 346.7 MB Notification: Performance of Templates: time 0.008081/0.4056, allocations: 3.417 MB / 455.4 MB, free: 7.902 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches