Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [: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.001635/0.001634, allocations: 180.9 kB / 8.151 MB, free: 2.184 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.745/1.745, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.001253/0.001253, allocations: 91.72 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.196e-05/1.238e-05, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2542, allocations: 47.56 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.3762, allocations: 79.65 MB / 441.5 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.3766, allocations: 71.95 kB / 441.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03202/0.4086, allocations: 6.468 MB / 448 MB, free: 15.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.786e-05/0.4087, allocations: 4 kB / 448 MB, free: 15.91 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00208/0.4108, allocations: 0.6777 MB / 448.7 MB, free: 15.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4108, allocations: 8.031 kB / 448.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.411, allocations: 47.44 kB / 448.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005508/0.4116, allocations: 293.5 kB / 449.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.4116, allocations: 8 kB / 449.1 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.4117, allocations: 25.03 kB / 449.1 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001188/0.4129, allocations: 357.4 kB / 449.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009757/0.4139, allocations: 342 kB / 449.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.414, allocations: 4 kB / 449.8 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.414, allocations: 0 / 449.8 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.4141, allocations: 8.938 kB / 449.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004424/0.4185, allocations: 1.232 MB / 451 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007771/0.4193, allocations: 250.7 kB / 451.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.4199, allocations: 210.2 kB / 451.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.807e-05/0.42, allocations: 8.438 kB / 451.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.42, allocations: 39.94 kB / 451.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 3.005e-06/0.42, allocations: 0 / 451.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.005772/0.4258, allocations: 1.504 MB / 453 MB, free: 10.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.4259, allocations: 55.84 kB / 453.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.4262, allocations: 192.2 kB / 453.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.16e-05/0.4264, allocations: 33.7 kB / 453.3 MB, free: 10.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.4265, allocations: 203.2 kB / 453.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.4267, allocations: 169.6 kB / 453.7 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.4268, allocations: 0 / 453.7 MB, free: 9.996 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.4269, allocations: 330.8 kB / 454 MB, free: 9.664 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.4275, allocations: 181.2 kB / 454.2 MB, free: 9.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000635/0.4281, allocations: 246.9 kB / 454.4 MB, free: 9.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006801/0.4288, allocations: 145.4 kB / 454.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.4289, allocations: 2.344 kB / 454.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002869/0.4317, allocations: 0.6547 MB / 455.2 MB, free: 8.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.4318, allocations: 4 kB / 455.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-05/0.4318, allocations: 7.938 kB / 455.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/0.4335, allocations: 422.5 kB / 455.6 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006178/0.4341, allocations: 71.91 kB / 455.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004851/0.439, allocations: 3.363 MB / 459 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.4402, allocations: 104 kB / 459.2 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.4403, allocations: 23.98 kB / 459.2 MB, free: 4.164 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: load.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0002708/0.4406, allocations: 46.95 kB / 459.2 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.4407, allocations: 39.52 kB / 459.3 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002705/0.4435, allocations: 0.6707 MB / 459.9 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4435, allocations: 4 kB / 459.9 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4435, allocations: 8 kB / 459.9 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.4435, allocations: 3.984 kB / 459.9 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.4467, allocations: 1.072 MB / 461 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4467, allocations: 11.94 kB / 461 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006084/0.4474, allocations: 59.97 kB / 461.1 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.4489, allocations: 410.2 kB / 461.5 MB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.813e-05/0.449, allocations: 19.91 kB / 461.5 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004139/0.4531, allocations: 3.31 MB / 464.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.4532, allocations: 3.938 kB / 464.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002602/0.4558, allocations: 0.8636 MB / 465.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.4562, allocations: 156.6 kB / 465.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.4563, allocations: 8 kB / 465.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.4574, allocations: 105.7 kB / 465.9 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/0.4577, allocations: 100.2 kB / 466 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.05e-05/0.4578, allocations: 23.97 kB / 466.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002185/0.458, allocations: 149.2 kB / 466.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007268/0.4588, allocations: 119.9 kB / 466.3 MB, free: 12.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003314/0.4591, allocations: 139.2 kB / 466.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002051/0.4612, allocations: 0.7289 MB / 467.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.4612, allocations: 0 / 467.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.4624, allocations: 475.4 kB / 467.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00068/0.4631, allocations: 49.03 kB / 467.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.4663, allocations: 0.7859 MB / 468.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005976/0.467, allocations: 0.8371 MB / 469.3 MB, free: 9.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.785e-06/0.467, allocations: 0 / 469.3 MB, free: 9.5 MB / 362.7 MB Notification: Performance of Templates: time 0.01787/0.4849, allocations: 8.799 MB / 478.1 MB, free: 0.7383 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches