Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008824/0.0008825, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0008217/0.0008218, allocations: 180.7 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002407, allocations: 6.812 kB / 300.7 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08442/0.08467, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002084/0.08678, allocations: 1.946 MB / 353.1 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.0881, allocations: 0.9292 MB / 354 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.08823, allocations: 4 kB / 354 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.08834, allocations: 35.77 kB / 354 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003947/0.08875, allocations: 146.7 kB / 354.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.08902, allocations: 139.8 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000306/0.08933, allocations: 295.4 kB / 354.6 MB, free: 8.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.08948, allocations: 73.27 kB / 354.7 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.0897, allocations: 183.4 kB / 354.9 MB, free: 7.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.08995, allocations: 207.3 kB / 355.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.09, allocations: 20 kB / 355.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.09017, allocations: 95.8 kB / 355.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.09028, allocations: 83.77 kB / 355.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.09035, allocations: 81.52 kB / 355.3 MB, free: 7.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.09068, allocations: 355.1 kB / 355.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.09069, allocations: 0 / 355.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09069, allocations: 0 / 355.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.09071, allocations: 7.938 kB / 355.7 MB, free: 7.152 MB / 286.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.001058/0.09177, allocations: 0.6158 MB / 356.3 MB, free: 6.488 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.09181, allocations: 12.03 kB / 356.3 MB, free: 6.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002907/0.09211, allocations: 51.56 kB / 356.4 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.09252, allocations: 310.3 kB / 356.7 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.09264, allocations: 92.05 kB / 356.8 MB, free: 5.977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.05e-05/0.09271, allocations: 32 kB / 356.8 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007207/0.09343, allocations: 416.9 kB / 357.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.09346, allocations: 0 / 357.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.0935, allocations: 12 kB / 357.2 MB, free: 5.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.09352, allocations: 11.95 kB / 357.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009579/0.09448, allocations: 482.3 kB / 357.7 MB, free: 5.031 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.09617, allocations: 1.001 MB / 358.7 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007872/0.09697, allocations: 408.6 kB / 359.1 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.09701, allocations: 12.42 kB / 359.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.09705, allocations: 42.98 kB / 359.2 MB, free: 3.504 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.763e-06/0.09706, allocations: 0 / 359.2 MB, free: 3.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005047/0.1021, allocations: 2.199 MB / 361.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.1022, allocations: 85.67 kB / 361.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/0.1025, allocations: 267 kB / 361.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/0.1025, allocations: 41.69 kB / 361.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.438e-05/0.1026, allocations: 125.2 kB / 361.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.1027, allocations: 185.3 kB / 362 MB, free: 480 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.1028, allocations: 8 kB / 362 MB, free: 472 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1029, allocations: 346.8 kB / 362.4 MB, free: 116 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000428/0.1033, allocations: 209 kB / 362.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.1038, allocations: 244.6 kB / 362.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004188/0.1042, allocations: 194.1 kB / 363 MB, free: 15.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.1042, allocations: 0 / 363 MB, free: 15.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001168/0.1054, allocations: 0.6252 MB / 363.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1054, allocations: 4 kB / 363.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1054, allocations: 0 / 363.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006743/0.1061, allocations: 258.8 kB / 363.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.1064, allocations: 71.88 kB / 364 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003498/0.1099, allocations: 2.745 MB / 366.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.1102, allocations: 35.97 kB / 366.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.1103, allocations: 20.06 kB / 366.8 MB, free: 11.58 MB / 302.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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001897/0.1105, allocations: 161.8 kB / 366.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.1106, allocations: 31.62 kB / 367 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.352e-05/0.1107, allocations: 55.19 kB / 367 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.1107, allocations: 8 kB / 367 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1107, allocations: 3.938 kB / 367 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1107, allocations: 3.984 kB / 367 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.1127, allocations: 1.28 MB / 368.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1128, allocations: 3.984 kB / 368.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.1131, allocations: 67.89 kB / 368.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000593/0.1137, allocations: 244.7 kB / 368.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.1137, allocations: 15.98 kB / 368.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003248/0.117, allocations: 2.668 MB / 371.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.117, allocations: 0 / 371.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.1186, allocations: 0.9746 MB / 372.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.1188, allocations: 156.6 kB / 372.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.867e-05/0.1189, allocations: 16.06 kB / 372.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.1192, allocations: 35.97 kB / 372.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.1194, allocations: 76.3 kB / 372.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.1194, allocations: 23.92 kB / 372.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.1196, allocations: 192.6 kB / 372.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.182e-06/0.1196, allocations: 4 kB / 372.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006087/0.1202, allocations: 155.9 kB / 372.9 MB, free: 5.176 MB / 302.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 (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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002094/0.1205, allocations: 135.2 kB / 373.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.1219, allocations: 0.715 MB / 373.8 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1219, allocations: 0 / 373.8 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008445/0.1228, allocations: 479.8 kB / 374.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.1231, allocations: 31 kB / 374.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.1248, allocations: 0.9416 MB / 375.2 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.1253, allocations: 0.8048 MB / 376 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.1255, allocations: 66.88 kB / 376.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.1256, allocations: 39.42 kB / 376.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1256, allocations: 0 / 376.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of Templates: time 0.012/0.1376, allocations: 6.932 MB / 383.1 MB, free: 10.96 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches