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.001086/0.001086, allocations: 97.02 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 205.9 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002617/0.0002618, allocations: 8.281 kB / 308.4 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 51.53 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002837/0.1041, allocations: 2.209 MB / 362.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.106, allocations: 1.12 MB / 363.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.1063, allocations: 7.938 kB / 363.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.1067, allocations: 51.69 kB / 363.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005827/0.1073, allocations: 160.1 kB / 363.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.1077, allocations: 155.8 kB / 363.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006247/0.1084, allocations: 0.4945 MB / 364.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.1086, allocations: 73.36 kB / 364.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004221/0.109, allocations: 207.3 kB / 364.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000388/0.1094, allocations: 251.2 kB / 364.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.025e-05/0.1095, allocations: 24 kB / 364.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002793/0.1098, allocations: 111.8 kB / 364.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.11, allocations: 95.69 kB / 364.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002171/0.1102, allocations: 212.7 kB / 365.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005179/0.1107, allocations: 399.2 kB / 365.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1107, allocations: 0 / 365.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1107, allocations: 0 / 365.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.1107, allocations: 0 / 365.4 MB, free: 7.703 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.001297/0.112, allocations: 0.6495 MB / 366.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1121, allocations: 12.02 kB / 366.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004486/0.1126, allocations: 68.44 kB / 366.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.113, allocations: 315.4 kB / 366.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.1132, allocations: 92.61 kB / 366.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.1133, allocations: 28.38 kB / 366.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008529/0.1141, allocations: 437 kB / 367 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1142, allocations: 3.906 kB / 367 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.1142, allocations: 12 kB / 367 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1142, allocations: 8 kB / 367 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.1152, allocations: 486.3 kB / 367.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.117, allocations: 1.001 MB / 368.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.1179, allocations: 404.1 kB / 368.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004835/0.1184, allocations: 250.2 kB / 369.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.1184, allocations: 12.41 kB / 369.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1184, allocations: 39 kB / 369.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.264e-06/0.1184, allocations: 0 / 369.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005395/0.1238, allocations: 2.21 MB / 371.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.1239, allocations: 81.67 kB / 371.5 MB, free: 1.336 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003339/0.1243, allocations: 277 kB / 371.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.1243, allocations: 37.69 kB / 371.8 MB, free: 1.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.784e-05/0.1244, allocations: 141 kB / 371.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.1246, allocations: 177.4 kB / 372.1 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.461e-05/0.1246, allocations: 45.7 kB / 372.2 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1248, allocations: 346.8 kB / 372.5 MB, free: 308 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004694/0.1252, allocations: 201 kB / 372.7 MB, free: 108 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1844/0.3097, allocations: 239.8 kB / 372.9 MB, free: 19.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.3109, allocations: 399.8 kB / 373.3 MB, free: 19.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.311, allocations: 1.312 kB / 373.3 MB, free: 19.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001782/0.3128, allocations: 0.6263 MB / 373.9 MB, free: 19.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.3128, allocations: 8.188 kB / 374 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3128, allocations: 0 / 374 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009674/0.3138, allocations: 295.9 kB / 374.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.3142, allocations: 73.75 kB / 374.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003928/0.3182, allocations: 2.715 MB / 377 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.3186, allocations: 36.73 kB / 377.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.3187, allocations: 20.19 kB / 377.1 MB, free: 17.91 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.0002138/0.3189, allocations: 167.4 kB / 377.3 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.783e-05/0.319, allocations: 39.97 kB / 377.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.3191, allocations: 52.27 kB / 377.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3191, allocations: 5.5 kB / 377.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3191, allocations: 0 / 377.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3191, allocations: 5.438 kB / 377.4 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.3215, allocations: 1.309 MB / 378.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3215, allocations: 1.344 kB / 378.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.3218, allocations: 67.59 kB / 378.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000774/0.3226, allocations: 293.2 kB / 379 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.904e-05/0.3227, allocations: 17.89 kB / 379 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003374/0.3261, allocations: 2.612 MB / 381.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3261, allocations: 1 kB / 381.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.328, allocations: 0.9842 MB / 382.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.3282, allocations: 162.9 kB / 382.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.354e-05/0.3283, allocations: 13.38 kB / 382.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003434/0.3286, allocations: 39.59 kB / 382.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.3288, allocations: 74.91 kB / 382.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.3289, allocations: 20 kB / 382.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002609/0.3292, allocations: 200.5 kB / 383.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3292, allocations: 0 / 383.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000757/0.33, allocations: 153.7 kB / 383.3 MB, free: 14.19 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.0009253/0.3309, allocations: 382.6 kB / 383.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.3325, allocations: 0.7082 MB / 384.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.3326, allocations: 0 / 384.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009447/0.3335, allocations: 482.5 kB / 384.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.3341, allocations: 49.38 kB / 384.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.3359, allocations: 1.026 MB / 385.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3362, allocations: 0.7952 MB / 386.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.3364, allocations: 45.44 kB / 386.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3364, allocations: 0.9375 kB / 386.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01322/0.3497, allocations: 6.633 MB / 393.4 MB, free: 9.727 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches