Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001881/0.001881, allocations: 114.3 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002247/0.002247, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.453/1.453, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.88 kB / 359.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2509, allocations: 50.54 MB / 410.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003802/0.2547, allocations: 2.465 MB / 412.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.2565, allocations: 1.053 MB / 413.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2566, allocations: 7.938 kB / 413.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.2568, allocations: 59.52 kB / 413.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003845/0.2572, allocations: 155.9 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.2576, allocations: 159.7 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005097/0.2581, allocations: 474.7 kB / 414.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.2582, allocations: 52.7 kB / 414.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.2584, allocations: 199.5 kB / 414.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.2587, allocations: 247.2 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.229e-05/0.2588, allocations: 36 kB / 415.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.259, allocations: 127.9 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.2592, allocations: 111.7 kB / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.2593, allocations: 175.2 kB / 415.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006065/0.2599, allocations: 0.4903 MB / 416 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2599, allocations: 0 / 416 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2599, allocations: 0 / 416 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.26, allocations: 0 / 416 MB, free: 11.62 MB / 334.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.001287/0.2612, allocations: 0.6777 MB / 416.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.2613, allocations: 8.031 kB / 416.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003211/0.2616, allocations: 52.72 kB / 416.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005176/0.2621, allocations: 301.5 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.2622, allocations: 88.52 kB / 417.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.052e-05/0.2623, allocations: 28.36 kB / 417.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.2631, allocations: 389.3 kB / 417.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.2631, allocations: 3.953 kB / 417.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.2631, allocations: 16 kB / 417.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2631, allocations: 4 kB / 417.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009487/0.2641, allocations: 417.9 kB / 417.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.2663, allocations: 1.253 MB / 419.2 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007582/0.2671, allocations: 331.5 kB / 419.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.2675, allocations: 164.8 kB / 419.7 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.2675, allocations: 4 kB / 419.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2675, allocations: 39.28 kB / 419.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.567e-06/0.2675, allocations: 3.984 kB / 419.7 MB, free: 7.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.005296/0.2728, allocations: 1.902 MB / 421.6 MB, free: 5.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.2729, allocations: 84.86 kB / 421.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.2733, allocations: 250.9 kB / 421.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/0.2733, allocations: 33.7 kB / 422 MB, free: 5.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.2734, allocations: 140.8 kB / 422.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.2736, allocations: 158.6 kB / 422.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.2737, allocations: 86.06 kB / 422.3 MB, free: 4.871 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2739, allocations: 338.8 kB / 422.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004543/0.2743, allocations: 168.8 kB / 422.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004945/0.2748, allocations: 233.8 kB / 423.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007452/0.2756, allocations: 335.2 kB / 423.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2756, allocations: 0 / 423.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001242/0.2768, allocations: 0.5435 MB / 423.9 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2768, allocations: 4 kB / 423.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2769, allocations: 8.125 kB / 424 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008451/0.2777, allocations: 292.6 kB / 424.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/0.278, allocations: 51.89 kB / 424.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004436/0.2824, allocations: 2.89 MB / 427.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.2827, allocations: 27.97 kB / 427.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.2827, allocations: 16 kB / 427.2 MB, free: 15.8 MB / 350.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.0003032/0.283, allocations: 165.7 kB / 427.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.039e-05/0.2831, allocations: 31.81 kB / 427.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.927e-05/0.2832, allocations: 42.98 kB / 427.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2832, allocations: 4 kB / 427.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2832, allocations: 0 / 427.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2833, allocations: 0 / 427.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.2855, allocations: 1.113 MB / 428.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2855, allocations: 0 / 428.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.2857, allocations: 43.91 kB / 428.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008019/0.2865, allocations: 284.8 kB / 428.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.2866, allocations: 11.98 kB / 428.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004153/0.2907, allocations: 2.859 MB / 431.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2907, allocations: 0 / 431.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.2923, allocations: 0.8083 MB / 432.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.2926, allocations: 148.9 kB / 432.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.2927, allocations: 11.94 kB / 432.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.2929, allocations: 23.98 kB / 432.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.2931, allocations: 67.95 kB / 432.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.2931, allocations: 15.98 kB / 432.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002634/0.2934, allocations: 184.2 kB / 433 MB, free: 9.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2934, allocations: 4 kB / 433 MB, free: 9.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006809/0.2941, allocations: 135.9 kB / 433.2 MB, free: 9.621 MB / 350.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.001333/0.2954, allocations: 383.5 kB / 433.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.2967, allocations: 0.5901 MB / 434.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2967, allocations: 0 / 434.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007552/0.2975, allocations: 413.7 kB / 434.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.2979, allocations: 45.84 kB / 434.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.2993, allocations: 0.714 MB / 435.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.2997, allocations: 0.78 MB / 436.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002102/0.2999, allocations: 66.92 kB / 436.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3001, allocations: 39.41 kB / 436.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3001, allocations: 0 / 436.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of Templates: time 0.01501/0.3151, allocations: 7.724 MB / 443.9 MB, free: 14.95 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches