Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.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.First,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.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,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.First") [: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.002673/0.002673, allocations: 180.8 kB / 8.151 MB, free: 2.086 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.783/1.783, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001303/0.001302, allocations: 87.14 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.708e-06/9.769e-06, allocations: 0 / 314.3 MB, free: 9.074 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.246, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.3728, allocations: 76.77 MB / 438.6 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.3732, allocations: 66.97 kB / 438.7 MB, free: 9.246 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02376/0.397, allocations: 3.695 MB / 442.4 MB, free: 5.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.243e-05/0.3971, allocations: 12 kB / 442.4 MB, free: 5.574 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001145/0.3983, allocations: 480.5 kB / 442.8 MB, free: 5.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.3983, allocations: 8.031 kB / 442.8 MB, free: 5.059 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.3985, allocations: 31.62 kB / 442.9 MB, free: 5.027 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.399, allocations: 227.4 kB / 443.1 MB, free: 4.762 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.3991, allocations: 8 kB / 443.1 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.142e-05/0.3992, allocations: 12 kB / 443.1 MB, free: 4.742 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000576/0.3998, allocations: 120.8 kB / 443.2 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.4005, allocations: 146.5 kB / 443.4 MB, free: 4.473 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.4006, allocations: 4 kB / 443.4 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.382e-05/0.4006, allocations: 3.984 kB / 443.4 MB, free: 4.465 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4006, allocations: 8 kB / 443.4 MB, free: 4.457 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.4027, allocations: 0.5723 MB / 444 MB, free: 3.844 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.4031, allocations: 113.6 kB / 444.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.4035, allocations: 88.78 kB / 444.2 MB, free: 3.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.222e-05/0.4035, allocations: 4 kB / 444.2 MB, free: 3.637 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.4036, allocations: 42.41 kB / 444.2 MB, free: 3.586 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.887e-06/0.4036, allocations: 0 / 444.2 MB, free: 3.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.003617/0.4073, allocations: 0.8881 MB / 445.1 MB, free: 2.602 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.4074, allocations: 61.94 kB / 445.2 MB, free: 2.531 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.4077, allocations: 138.5 kB / 445.3 MB, free: 2.391 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.4077, allocations: 25.7 kB / 445.3 MB, free: 2.359 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.4079, allocations: 186.8 kB / 445.5 MB, free: 2.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.408, allocations: 114.3 kB / 445.6 MB, free: 2.062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.4081, allocations: 0 / 445.6 MB, free: 2.062 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.4083, allocations: 326.8 kB / 445.9 MB, free: 1.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.4086, allocations: 52 kB / 446 MB, free: 1.684 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.4089, allocations: 90.84 kB / 446.1 MB, free: 1.586 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.4092, allocations: 65.39 kB / 446.1 MB, free: 1.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.4093, allocations: 4.219 kB / 446.1 MB, free: 1.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001031/0.4103, allocations: 247.5 kB / 446.4 MB, free: 1.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.4104, allocations: 9.5 kB / 446.4 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.4104, allocations: 64 / 446.4 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003571/0.4108, allocations: 48.83 kB / 446.4 MB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007063/0.4115, allocations: 67.8 kB / 446.5 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003148/0.4147, allocations: 1.483 MB / 448 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/0.415, allocations: 8.062 kB / 448 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.4151, allocations: 13.38 kB / 448 MB, free: 15.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.4152, allocations: 29.64 kB / 448 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.4154, allocations: 23.72 kB / 448.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.4155, allocations: 22.64 kB / 448.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.4156, allocations: 4 kB / 448.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.4156, allocations: 0 / 448.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.4156, allocations: 4 kB / 448.1 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/0.418, allocations: 0.7125 MB / 448.8 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.4181, allocations: 4 kB / 448.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007878/0.4189, allocations: 60.75 kB / 448.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/0.4192, allocations: 36.84 kB / 448.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.4193, allocations: 1.25 kB / 448.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002374/0.4217, allocations: 1.318 MB / 450.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.4218, allocations: 0 / 450.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001465/0.4232, allocations: 474.4 kB / 450.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.4234, allocations: 96.83 kB / 450.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.889e-05/0.4235, allocations: 8 kB / 450.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.424, allocations: 4 kB / 450.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.4241, allocations: 19.91 kB / 450.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.4242, allocations: 14.72 kB / 450.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001846/0.4243, allocations: 112.4 kB / 450.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008617/0.4252, allocations: 55.91 kB / 451 MB, free: 12.3 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0002516/0.4255, allocations: 103.9 kB / 451.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.4267, allocations: 293.8 kB / 451.4 MB, free: 11.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4268, allocations: 0 / 451.4 MB, free: 11.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007557/0.4275, allocations: 209.7 kB / 451.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007852/0.4284, allocations: 32.3 kB / 451.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.431, allocations: 0.5926 MB / 452.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007489/0.4318, allocations: 0.7897 MB / 453 MB, free: 10.21 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.4318, allocations: 0 / 453 MB, free: 10.21 MB / 346.7 MB Notification: Performance of Templates: time 0.01267/0.4445, allocations: 3.766 MB / 456.8 MB, free: 6.469 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches