Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001325, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001549/0.001549, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 63.73 kB / 306.9 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1079, allocations: 50.53 MB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004384/0.1123, allocations: 2.497 MB / 359.9 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.1146, allocations: 1.053 MB / 361 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.1148, allocations: 4 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003832/0.1153, allocations: 51.69 kB / 361 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005312/0.1158, allocations: 135.7 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.1163, allocations: 135.8 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005914/0.1169, allocations: 454.6 kB / 361.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.1171, allocations: 60.7 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.1174, allocations: 179.5 kB / 362 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.1178, allocations: 231.2 kB / 362.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.602e-05/0.1179, allocations: 24 kB / 362.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.1182, allocations: 111.9 kB / 362.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.1184, allocations: 87.7 kB / 362.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.1186, allocations: 167.2 kB / 362.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004994/0.1191, allocations: 367.4 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.1191, allocations: 3.984 kB / 362.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1191, allocations: 0 / 362.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1191, allocations: 0 / 362.9 MB, free: 8.965 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001374/0.1205, allocations: 0.659 MB / 363.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.1205, allocations: 8.031 kB / 363.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004306/0.121, allocations: 52.53 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.1215, allocations: 293.5 kB / 364 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.1217, allocations: 88.52 kB / 364 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.431e-05/0.1217, allocations: 28.28 kB / 364.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007792/0.1225, allocations: 385.4 kB / 364.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.1226, allocations: 7.938 kB / 364.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.1226, allocations: 8 kB / 364.5 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1227, allocations: 11.94 kB / 364.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008972/0.1236, allocations: 421.9 kB / 364.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.1258, allocations: 1.269 MB / 366.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007106/0.1265, allocations: 343.4 kB / 366.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003929/0.1269, allocations: 188.8 kB / 366.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/0.127, allocations: 4 kB / 366.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.127, allocations: 38.56 kB / 366.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.715e-06/0.127, allocations: 0 / 366.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005092/0.1321, allocations: 1.902 MB / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.1322, allocations: 88.86 kB / 368.7 MB, free: 2.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003342/0.1325, allocations: 250 kB / 368.9 MB, free: 2.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.1326, allocations: 41.69 kB / 369 MB, free: 2.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1327, allocations: 132.6 kB / 369.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.1329, allocations: 154 kB / 369.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.133, allocations: 86.11 kB / 369.3 MB, free: 2.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1332, allocations: 334.8 kB / 369.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003953/0.1336, allocations: 164.8 kB / 369.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004261/0.134, allocations: 225.9 kB / 370.1 MB, free: 1.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007039/0.1347, allocations: 339.1 kB / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.1348, allocations: 4 kB / 370.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001232/0.136, allocations: 0.5473 MB / 370.9 MB, free: 0.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.136, allocations: 8 kB / 370.9 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.1361, allocations: 7.984 kB / 371 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008836/0.1369, allocations: 293.8 kB / 371.2 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.1372, allocations: 59.95 kB / 371.3 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1627/0.2999, allocations: 2.652 MB / 374 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.3003, allocations: 21.59 kB / 374 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.178e-05/0.3004, allocations: 19.84 kB / 374 MB, free: 19 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.3006, allocations: 159.8 kB / 374.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.3007, allocations: 25.88 kB / 374.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.809e-05/0.3008, allocations: 45.45 kB / 374.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3008, allocations: 4.562 kB / 374.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3008, allocations: 2.562 kB / 374.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3008, allocations: 2.438 kB / 374.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.3028, allocations: 1.119 MB / 375.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.3028, allocations: 1.125 kB / 375.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.303, allocations: 47.83 kB / 375.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008144/0.3039, allocations: 279.6 kB / 375.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.3039, allocations: 12.19 kB / 375.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003277/0.3072, allocations: 2.602 MB / 378.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3072, allocations: 1.953 kB / 378.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3088, allocations: 0.8045 MB / 379.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.309, allocations: 147.5 kB / 379.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.595e-05/0.309, allocations: 16.44 kB / 379.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.3093, allocations: 26.41 kB / 379.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.3095, allocations: 67.11 kB / 379.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.791e-05/0.3095, allocations: 14.94 kB / 379.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002289/0.3098, allocations: 187.4 kB / 379.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3098, allocations: 0 / 379.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006869/0.3105, allocations: 137.2 kB / 379.7 MB, free: 15.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008966/0.3114, allocations: 378.1 kB / 380 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.3128, allocations: 0.6202 MB / 380.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3128, allocations: 0 / 380.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007641/0.3136, allocations: 428 kB / 381.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.3141, allocations: 42.73 kB / 381.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.3156, allocations: 0.8413 MB / 382 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3158, allocations: 0.786 MB / 382.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.316, allocations: 37.61 kB / 382.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.316, allocations: 1.156 kB / 382.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Templates: time 0.01012/0.3262, allocations: 5.889 MB / 388.7 MB, free: 12.07 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches