Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001612/0.001612, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002135/0.002135, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.53 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09934, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004004/0.1034, allocations: 2.528 MB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.1053, allocations: 1.143 MB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.1055, allocations: 4 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002908/0.1059, allocations: 71.36 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005068/0.1064, allocations: 170.3 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.1069, allocations: 179.6 kB / 361.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005531/0.1074, allocations: 0.5141 MB / 362.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1076, allocations: 94.53 kB / 362.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003931/0.108, allocations: 227.3 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.1084, allocations: 275.2 kB / 362.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.1086, allocations: 44 kB / 362.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002994/0.1089, allocations: 135.9 kB / 362.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.109, allocations: 115.7 kB / 362.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.1093, allocations: 203 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006481/0.1099, allocations: 0.5377 MB / 363.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.11, allocations: 0 / 363.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.11, allocations: 4 kB / 363.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.11, allocations: 0 / 363.7 MB, free: 7.844 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001436/0.1114, allocations: 0.7132 MB / 364.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.1115, allocations: 8.031 kB / 364.4 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004242/0.1119, allocations: 64.53 kB / 364.5 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.1123, allocations: 319.3 kB / 364.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.1125, allocations: 88.61 kB / 364.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.1126, allocations: 32.38 kB / 364.9 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008152/0.1134, allocations: 429 kB / 365.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1134, allocations: 0 / 365.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.1135, allocations: 12 kB / 365.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.1135, allocations: 8 kB / 365.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.1145, allocations: 470.3 kB / 365.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.1163, allocations: 0.9929 MB / 366.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008746/0.1172, allocations: 403.8 kB / 367.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004943/0.1177, allocations: 226.1 kB / 367.4 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.1177, allocations: 8.438 kB / 367.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1178, allocations: 35 kB / 367.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.984e-06/0.1178, allocations: 0 / 367.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005572/0.1233, allocations: 2.152 MB / 369.6 MB, free: 1.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.1234, allocations: 85.67 kB / 369.7 MB, free: 1.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.1238, allocations: 276.9 kB / 369.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/0.1238, allocations: 37.7 kB / 370 MB, free: 1.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.497e-05/0.1239, allocations: 137.1 kB / 370.1 MB, free: 1.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.1241, allocations: 181.4 kB / 370.3 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.1243, allocations: 90.23 kB / 370.4 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1244, allocations: 338.8 kB / 370.7 MB, free: 472 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004684/0.1249, allocations: 205 kB / 370.9 MB, free: 268 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.1254, allocations: 240.6 kB / 371.1 MB, free: 16 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1681/0.2935, allocations: 373.4 kB / 371.5 MB, free: 20.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-06/0.2935, allocations: 1.234 kB / 371.5 MB, free: 20.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001687/0.2952, allocations: 0.6123 MB / 372.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.2953, allocations: 7.219 kB / 372.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.2953, allocations: 0.7188 kB / 372.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.2963, allocations: 300.2 kB / 372.4 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/0.2967, allocations: 73.61 kB / 372.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004366/0.3011, allocations: 2.946 MB / 375.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.3015, allocations: 27.64 kB / 375.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.3015, allocations: 24.03 kB / 375.5 MB, free: 18.03 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.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.0001978/0.3017, allocations: 163.2 kB / 375.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.3018, allocations: 34.7 kB / 375.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.3019, allocations: 52.08 kB / 375.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.302, allocations: 5.5 kB / 375.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.302, allocations: 7.062 kB / 375.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.495e-06/0.302, allocations: 2.953 kB / 375.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.3043, allocations: 1.298 MB / 377 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3043, allocations: 0 / 377 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.3046, allocations: 71.58 kB / 377.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007533/0.3054, allocations: 288.6 kB / 377.4 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.3054, allocations: 17.58 kB / 377.4 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003376/0.3088, allocations: 2.843 MB / 380.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3088, allocations: 5.344 kB / 380.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.3107, allocations: 0.9545 MB / 381.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.3109, allocations: 157.9 kB / 381.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.313e-05/0.311, allocations: 12.72 kB / 381.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.3114, allocations: 33.11 kB / 381.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.3116, allocations: 70.34 kB / 381.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.3116, allocations: 19.48 kB / 381.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002673/0.3119, allocations: 200.4 kB / 381.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3119, allocations: 0 / 381.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000781/0.3127, allocations: 151 kB / 381.9 MB, free: 14.13 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 (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.000979/0.3137, allocations: 383.9 kB / 382.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.3155, allocations: 0.7236 MB / 382.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3155, allocations: 0 / 382.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009/0.3164, allocations: 476.6 kB / 383.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005538/0.317, allocations: 58.05 kB / 383.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.3188, allocations: 0.8157 MB / 384.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.3192, allocations: 0.7999 MB / 385.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003062/0.3195, allocations: 85.83 kB / 385.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.3196, allocations: 40.25 kB / 385.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3196, allocations: 0 / 385.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Templates: time 0.01667/0.3363, allocations: 8.226 MB / 393.4 MB, free: 9.246 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches