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.001112/0.001112, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.001331, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.25 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09546, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003684/0.09918, allocations: 2.44 MB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1009, allocations: 1.053 MB / 362.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.101, allocations: 4 kB / 362.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.1013, allocations: 63.48 kB / 362.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003999/0.1017, allocations: 158.4 kB / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.1021, allocations: 159.6 kB / 362.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.1026, allocations: 482.5 kB / 363.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1027, allocations: 68.7 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.103, allocations: 199.5 kB / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003002/0.1033, allocations: 247.2 kB / 363.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.847e-05/0.1033, allocations: 36 kB / 363.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.1036, allocations: 131.9 kB / 363.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.1037, allocations: 103.7 kB / 364 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.1039, allocations: 179.2 kB / 364.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005345/0.1044, allocations: 0.4985 MB / 364.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1045, allocations: 0 / 364.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1045, allocations: 3.938 kB / 364.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1045, allocations: 0 / 364.7 MB, free: 7.523 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.001228/0.1057, allocations: 0.659 MB / 365.3 MB, free: 6.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1058, allocations: 8.031 kB / 365.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003513/0.1061, allocations: 48.55 kB / 365.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/0.1066, allocations: 301.4 kB / 365.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.1068, allocations: 92.52 kB / 365.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.915e-05/0.1068, allocations: 28.28 kB / 365.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006782/0.1075, allocations: 385.4 kB / 366.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.1076, allocations: 4 kB / 366.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.1076, allocations: 12 kB / 366.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.515e-06/0.1076, allocations: 8 kB / 366.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008253/0.1084, allocations: 421.8 kB / 366.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1105, allocations: 1.261 MB / 367.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006649/0.1112, allocations: 346.1 kB / 368.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.1116, allocations: 184.8 kB / 368.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.364e-05/0.1116, allocations: 8.141 kB / 368.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1117, allocations: 47.2 kB / 368.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.144e-06/0.1117, allocations: 0 / 368.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004645/0.1163, allocations: 1.905 MB / 370.4 MB, free: 1.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.1164, allocations: 88.86 kB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.1167, allocations: 246.7 kB / 370.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/0.1168, allocations: 37.7 kB / 370.7 MB, free: 1.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.439e-05/0.1169, allocations: 136.6 kB / 370.9 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.117, allocations: 145.9 kB / 371 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.1171, allocations: 82.11 kB / 371.1 MB, free: 0.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1172, allocations: 338.8 kB / 371.4 MB, free: 420 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.1176, allocations: 168.8 kB / 371.6 MB, free: 252 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.118, allocations: 225.9 kB / 371.8 MB, free: 8 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1629/0.281, allocations: 327.7 kB / 372.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.281, allocations: 2.219 kB / 372.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00124/0.2823, allocations: 0.5585 MB / 372.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.2823, allocations: 5.375 kB / 372.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2823, allocations: 5.422 kB / 372.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008167/0.2831, allocations: 291.2 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.2834, allocations: 56.61 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003779/0.2872, allocations: 2.898 MB / 375.9 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002668/0.2875, allocations: 26.45 kB / 376 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.2875, allocations: 23.2 kB / 376 MB, free: 18.07 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.000176/0.2877, allocations: 157.1 kB / 376.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.2878, allocations: 29.95 kB / 376.2 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.707e-05/0.2879, allocations: 50.2 kB / 376.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2879, allocations: 6.297 kB / 376.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.2879, allocations: 1.375 kB / 376.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2879, allocations: 2.656 kB / 376.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/0.2897, allocations: 1.108 MB / 377.3 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2897, allocations: 0 / 377.3 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002477/0.2899, allocations: 54.45 kB / 377.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000684/0.2906, allocations: 282.8 kB / 377.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.2907, allocations: 12.05 kB / 377.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0033/0.294, allocations: 2.844 MB / 380.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.294, allocations: 0 / 380.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.2955, allocations: 0.8159 MB / 381.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2957, allocations: 147.9 kB / 381.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.775e-05/0.2957, allocations: 9.875 kB / 381.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.296, allocations: 24.67 kB / 381.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.2962, allocations: 63.91 kB / 381.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.2962, allocations: 13.17 kB / 381.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.2964, allocations: 186.5 kB / 381.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2965, allocations: 0 / 381.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006398/0.2971, allocations: 133.2 kB / 381.9 MB, free: 14.36 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.0008712/0.298, allocations: 377.8 kB / 382.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.2993, allocations: 0.6271 MB / 382.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2993, allocations: 0 / 382.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007055/0.3, allocations: 438 kB / 383.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.3005, allocations: 57.22 kB / 383.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.3018, allocations: 0.688 MB / 384.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.3021, allocations: 0.7855 MB / 384.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002104/0.3023, allocations: 72.22 kB / 384.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.3024, allocations: 37.08 kB / 385 MB, free: 12.49 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3024, allocations: 0 / 385 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Templates: time 0.01338/0.3158, allocations: 7.57 MB / 392.5 MB, free: 10.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 -s gbode -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