Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 111.9 kB / 18.4 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 190.3 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 55.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08942/0.09085, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004191/0.09509, allocations: 2.432 MB / 378.2 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.09723, allocations: 1.015 MB / 379.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002604/0.09751, allocations: 4 kB / 379.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002784/0.09783, allocations: 47.52 kB / 379.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007342/0.09857, allocations: 163.1 kB / 379.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.09905, allocations: 175.7 kB / 379.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006342/0.09969, allocations: 470.5 kB / 380.1 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.09991, allocations: 92.91 kB / 380.2 MB, free: 200 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1779/0.2779, allocations: 202.5 kB / 380.4 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005436/0.2785, allocations: 247.8 kB / 380.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.2786, allocations: 36.59 kB / 380.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003158/0.2789, allocations: 128.1 kB / 380.8 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.2791, allocations: 104.5 kB / 380.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.2793, allocations: 184.4 kB / 381.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007141/0.28, allocations: 0.4949 MB / 381.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.28, allocations: 3.812 kB / 381.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.28, allocations: 0 / 381.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.28, allocations: 0 / 381.6 MB, free: 10.37 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001276/0.2813, allocations: 0.6676 MB / 382.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.2814, allocations: 10.8 kB / 382.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003355/0.2817, allocations: 50.41 kB / 382.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004789/0.2822, allocations: 324.5 kB / 382.6 MB, free: 9.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.2823, allocations: 91.2 kB / 382.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.2824, allocations: 34.02 kB / 382.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008757/0.2833, allocations: 415.1 kB / 383.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.2834, allocations: 7.594 kB / 383.1 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.2834, allocations: 21.28 kB / 383.2 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.2834, allocations: 7.531 kB / 383.2 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.2845, allocations: 470.5 kB / 383.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.2862, allocations: 0.9674 MB / 384.6 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008321/0.2871, allocations: 407.1 kB / 385 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000452/0.2875, allocations: 236.1 kB / 385.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.2876, allocations: 11.17 kB / 385.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.2876, allocations: 37.22 kB / 385.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.505e-06/0.2876, allocations: 0 / 385.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005265/0.2929, allocations: 2.163 MB / 387.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.293, allocations: 83.92 kB / 387.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003524/0.2933, allocations: 262.6 kB / 387.8 MB, free: 7.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.1e-05/0.2934, allocations: 43.86 kB / 387.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.587e-05/0.2935, allocations: 130.7 kB / 387.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.2936, allocations: 189.6 kB / 388.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.2938, allocations: 88.44 kB / 388.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.2939, allocations: 340.1 kB / 388.5 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/0.2944, allocations: 195.6 kB / 388.7 MB, free: 6.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005238/0.2949, allocations: 249.5 kB / 389 MB, free: 6.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008758/0.2958, allocations: 387.6 kB / 389.4 MB, free: 6.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2958, allocations: 1.156 kB / 389.4 MB, free: 6.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001397/0.2972, allocations: 0.6185 MB / 390 MB, free: 6.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.2973, allocations: 9.188 kB / 390 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2973, allocations: 4.594 kB / 390 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007288/0.298, allocations: 259.5 kB / 390.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.2983, allocations: 67.72 kB / 390.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.3017, allocations: 2.927 MB / 393.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.3021, allocations: 32.5 kB / 393.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.3021, allocations: 18.38 kB / 393.3 MB, free: 3.992 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002158/0.3024, allocations: 155.9 kB / 393.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/0.3025, allocations: 36.55 kB / 393.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.808e-05/0.3026, allocations: 52.08 kB / 393.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3026, allocations: 4.438 kB / 393.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3026, allocations: 1.438 kB / 393.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.3026, allocations: 6.562 kB / 393.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.3048, allocations: 1.267 MB / 394.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3048, allocations: 0 / 394.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.3051, allocations: 63.3 kB / 394.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006657/0.3058, allocations: 245.7 kB / 395.1 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.209e-05/0.3059, allocations: 15.66 kB / 395.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003293/0.3092, allocations: 2.837 MB / 398 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3092, allocations: 5.312 kB / 398 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.3109, allocations: 0.9609 MB / 398.9 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.3111, allocations: 152.3 kB / 399.1 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.3112, allocations: 12.41 kB / 399.1 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.3115, allocations: 32.72 kB / 399.1 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.3117, allocations: 66.19 kB / 399.2 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/0.3117, allocations: 18.28 kB / 399.2 MB, free: 284 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002271/0.312, allocations: 205.5 kB / 399.4 MB, free: 168 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.312, allocations: 0 / 399.4 MB, free: 168 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006975/0.3127, allocations: 151.8 kB / 399.6 MB, free: 148 kB / 318.1 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: 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 (31): * Single equations (assignments): 30 * 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.0002332/0.3129, allocations: 143.2 kB / 399.7 MB, free: 40 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.3144, allocations: 0.7052 MB / 400.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.3145, allocations: 1.219 kB / 400.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008296/0.3153, allocations: 478.5 kB / 400.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.3158, allocations: 46.84 kB / 400.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.3174, allocations: 0.8166 MB / 401.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.3179, allocations: 0.7971 MB / 402.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.3181, allocations: 42.31 kB / 402.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3181, allocations: 1.062 kB / 402.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of Templates: time 0.009404/0.3275, allocations: 6.002 MB / 408.6 MB, free: 11.89 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches