Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 226.8 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009971/0.0009969, allocations: 96.91 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009036/0.0009037, allocations: 51.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2188, allocations: 50.44 MB / 407 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003176/0.222, allocations: 3.14 MB / 410.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.2236, allocations: 1.309 MB / 411.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.2237, allocations: 7.938 kB / 411.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000348/0.2241, allocations: 71.53 kB / 411.6 MB, free: 23.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.2243, allocations: 111.2 kB / 411.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006044/0.2249, allocations: 363.2 kB / 412 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004301/0.2253, allocations: 0.7723 MB / 412.8 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.2255, allocations: 85.47 kB / 412.9 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003281/0.2258, allocations: 342.9 kB / 413.2 MB, free: 21.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009841/0.2268, allocations: 1.456 MB / 414.7 MB, free: 20.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.352e-05/0.2269, allocations: 39.94 kB / 414.7 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.2271, allocations: 104 kB / 414.8 MB, free: 19.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.2273, allocations: 204.2 kB / 415 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.2275, allocations: 322.1 kB / 415.3 MB, free: 19.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005379/0.228, allocations: 0.8541 MB / 416.2 MB, free: 18.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2281, allocations: 0 / 416.2 MB, free: 18.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2281, allocations: 7.938 kB / 416.2 MB, free: 18.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2281, allocations: 4 kB / 416.2 MB, free: 18.61 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003252/0.2313, allocations: 1.34 MB / 417.5 MB, free: 17.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2314, allocations: 8.031 kB / 417.6 MB, free: 17.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004365/0.2318, allocations: 104 kB / 417.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.2323, allocations: 427.5 kB / 418.1 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.2323, allocations: 33.36 kB / 418.1 MB, free: 16.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.379e-05/0.2324, allocations: 36.38 kB / 418.1 MB, free: 16.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.2337, allocations: 0.6226 MB / 418.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.2337, allocations: 4 kB / 418.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.256e-05/0.2338, allocations: 23.92 kB / 418.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.2338, allocations: 12 kB / 418.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.2355, allocations: 0.6859 MB / 419.5 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.2385, allocations: 1.654 MB / 421.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.2397, allocations: 0.4902 MB / 421.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007157/0.2404, allocations: 289.6 kB / 421.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.627e-05/0.2405, allocations: 4 kB / 421.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.2415, allocations: 490.2 kB / 422.4 MB, free: 12.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 1.793e-06/0.2415, allocations: 4 kB / 422.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.007989/0.2495, allocations: 2.788 MB / 425.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.2496, allocations: 81.11 kB / 425.3 MB, free: 9.141 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006381/0.2502, allocations: 0.9179 MB / 426.2 MB, free: 8.215 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.666e-05/0.2503, allocations: 49.69 kB / 426.2 MB, free: 8.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2504, allocations: 296.3 kB / 426.5 MB, free: 7.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.2505, allocations: 181.8 kB / 426.7 MB, free: 7.684 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.2507, allocations: 118.1 kB / 426.8 MB, free: 7.559 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.2508, allocations: 382.7 kB / 427.2 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007827/0.2516, allocations: 321.1 kB / 427.5 MB, free: 6.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008075/0.2524, allocations: 422.9 kB / 427.9 MB, free: 6.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.2537, allocations: 0.502 MB / 428.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2537, allocations: 0 / 428.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002345/0.2561, allocations: 0.9881 MB / 429.4 MB, free: 4.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2561, allocations: 7.938 kB / 429.4 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2561, allocations: 4 kB / 429.4 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000839/0.2569, allocations: 0.5334 MB / 430 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.2574, allocations: 111.9 kB / 430.1 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004751/0.2622, allocations: 4.389 MB / 434.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.2636, allocations: 231.6 kB / 434.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.888e-05/0.2637, allocations: 27.98 kB / 434.7 MB, free: 15.29 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003492/0.264, allocations: 254.1 kB / 435 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.2641, allocations: 71.16 kB / 435 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002036/0.2643, allocations: 102.2 kB / 435.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2644, allocations: 11.94 kB / 435.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2644, allocations: 7.922 kB / 435.1 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2644, allocations: 0 / 435.1 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002806/0.2672, allocations: 1.403 MB / 436.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2672, allocations: 0 / 436.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004622/0.2677, allocations: 87.94 kB / 436.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008697/0.2686, allocations: 0.4944 MB / 437.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.789e-05/0.2686, allocations: 19.97 kB / 437.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004903/0.2735, allocations: 4.118 MB / 441.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.2736, allocations: 4.25 kB / 441.3 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01614/0.2897, allocations: 10.08 MB / 451.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.2901, allocations: 216.1 kB / 451.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-05/0.2902, allocations: 23.94 kB / 451.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.2918, allocations: 267.6 kB / 451.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001362/0.2932, allocations: 0.5459 MB / 452.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.599e-05/0.2932, allocations: 31.97 kB / 452.4 MB, free: 12.51 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006072/0.2939, allocations: 0.6709 MB / 453.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2939, allocations: 0 / 453.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008893/0.2948, allocations: 255.9 kB / 453.3 MB, free: 11.59 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009859/0.2958, allocations: 0.4886 MB / 453.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.298, allocations: 0.9633 MB / 454.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.298, allocations: 0 / 454.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.2993, allocations: 0.65 MB / 455.4 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005562/0.2999, allocations: 78.89 kB / 455.5 MB, free: 9.527 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00434/0.3042, allocations: 2.747 MB / 458.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.3047, allocations: 0.9378 MB / 459.2 MB, free: 5.723 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002489/0.305, allocations: 51.27 kB / 459.2 MB, free: 5.672 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.3051, allocations: 43.41 kB / 459.3 MB, free: 5.629 MB / 330.7 MB Notification: Performance of SimCode: time 4.1e-07/0.3051, allocations: 3.938 kB / 459.3 MB, free: 5.625 MB / 330.7 MB Notification: Performance of Templates: time 0.02323/0.3284, allocations: 17.23 MB / 476.5 MB, free: 4.422 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches