Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009022/0.0009023, allocations: 176.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0008551/0.0008551, allocations: 90.33 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005126/0.0005128, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2278, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002092/0.2299, allocations: 2.302 MB / 377.4 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2313, allocations: 1.084 MB / 378.5 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2314, allocations: 4.281 kB / 378.5 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.2316, allocations: 50.69 kB / 378.5 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004027/0.232, allocations: 162 kB / 378.7 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.2324, allocations: 195 kB / 378.9 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.2328, allocations: 0.5621 MB / 379.4 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.233, allocations: 114.1 kB / 379.5 MB, free: 42.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.2333, allocations: 254.5 kB / 379.8 MB, free: 41.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.2336, allocations: 306.2 kB / 380.1 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.959e-05/0.2337, allocations: 27.38 kB / 380.1 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.2339, allocations: 99.36 kB / 380.2 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.234, allocations: 116.7 kB / 380.3 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.2342, allocations: 236.3 kB / 380.6 MB, free: 41.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.2345, allocations: 465.9 kB / 381 MB, free: 41.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2346, allocations: 1.344 kB / 381 MB, free: 41.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2346, allocations: 0 / 381 MB, free: 41.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.2346, allocations: 0 / 381 MB, free: 41.09 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001206/0.2358, allocations: 0.7363 MB / 381.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2358, allocations: 9.688 kB / 381.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002851/0.2361, allocations: 66.45 kB / 381.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.2365, allocations: 356.5 kB / 382.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.2366, allocations: 93.7 kB / 382.3 MB, free: 40.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-05/0.2367, allocations: 46.03 kB / 382.3 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009427/0.2377, allocations: 0.5658 MB / 382.9 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.2377, allocations: 5.312 kB / 382.9 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.957e-05/0.2378, allocations: 15.62 kB / 382.9 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.2378, allocations: 10.16 kB / 382.9 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.239, allocations: 0.6482 MB / 383.6 MB, free: 39.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.2411, allocations: 1.318 MB / 384.9 MB, free: 38.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.2421, allocations: 0.5511 MB / 385.4 MB, free: 38.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005014/0.2426, allocations: 330.4 kB / 385.8 MB, free: 37.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.2427, allocations: 8.5 kB / 385.8 MB, free: 37.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.2427, allocations: 39.12 kB / 385.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 1.853e-06/0.2427, allocations: 0 / 385.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.005737/0.2484, allocations: 2.969 MB / 388.8 MB, free: 34.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.2485, allocations: 89.61 kB / 388.9 MB, free: 34.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.2488, allocations: 331 kB / 389.2 MB, free: 34.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.2488, allocations: 45.69 kB / 389.2 MB, free: 34.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.304e-05/0.2489, allocations: 161.5 kB / 389.4 MB, free: 34.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.249, allocations: 228.8 kB / 389.6 MB, free: 33.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.2491, allocations: 16 kB / 389.6 MB, free: 33.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.436e-05/0.2491, allocations: 346.8 kB / 390 MB, free: 33.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.2497, allocations: 293.1 kB / 390.2 MB, free: 33.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005211/0.2502, allocations: 370.4 kB / 390.6 MB, free: 32.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008852/0.2511, allocations: 0.5305 MB / 391.1 MB, free: 32.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2511, allocations: 0 / 391.1 MB, free: 32.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001503/0.2526, allocations: 0.9084 MB / 392 MB, free: 31.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2526, allocations: 4 kB / 392 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2526, allocations: 3.938 kB / 392.1 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.2537, allocations: 481.6 kB / 392.5 MB, free: 30.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004158/0.2541, allocations: 87.88 kB / 392.6 MB, free: 30.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.2553, allocations: 1.083 MB / 393.7 MB, free: 29.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005258/0.2558, allocations: 80 kB / 393.8 MB, free: 29.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/0.2559, allocations: 23.98 kB / 393.8 MB, free: 29.57 MB / 298.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: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002071/0.2561, allocations: 178.6 kB / 394 MB, free: 29.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.461e-05/0.2562, allocations: 43.53 kB / 394 MB, free: 29.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001576/0.2564, allocations: 63.7 kB / 394.1 MB, free: 29.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2564, allocations: 8 kB / 394.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2564, allocations: 0 / 394.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.2564, allocations: 3.984 kB / 394.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.2592, allocations: 1.781 MB / 395.9 MB, free: 27.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.2592, allocations: 0 / 395.9 MB, free: 27.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.2595, allocations: 79.88 kB / 395.9 MB, free: 27.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007948/0.2604, allocations: 456.5 kB / 396.4 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.2604, allocations: 19.98 kB / 396.4 MB, free: 26.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009282/0.2613, allocations: 1.048 MB / 397.5 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2614, allocations: 3.984 kB / 397.5 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.2634, allocations: 1.313 MB / 398.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.2636, allocations: 180.6 kB / 398.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/0.2637, allocations: 23.94 kB / 399 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.2641, allocations: 68 kB / 399 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.2643, allocations: 104.4 kB / 399.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.422e-05/0.2643, allocations: 23.97 kB / 399.2 MB, free: 24.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002064/0.2645, allocations: 241.9 kB / 399.4 MB, free: 23.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2645, allocations: 4 kB / 399.4 MB, free: 23.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004232/0.265, allocations: 148 kB / 399.5 MB, free: 23.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002046/0.2652, allocations: 149.5 kB / 399.7 MB, free: 23.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.2664, allocations: 0.7157 MB / 400.4 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2664, allocations: 0 / 400.4 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006841/0.2671, allocations: 396.2 kB / 400.8 MB, free: 22.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.2676, allocations: 59.61 kB / 400.9 MB, free: 22.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.2697, allocations: 1.394 MB / 402.3 MB, free: 20.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.2699, allocations: 0.8134 MB / 403.1 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.2701, allocations: 47.41 kB / 403.1 MB, free: 20.02 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2701, allocations: 4 kB / 403.1 MB, free: 20.02 MB / 298.7 MB Notification: Performance of Templates: time 0.006978/0.277, allocations: 7.13 MB / 410.2 MB, free: 12.89 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time