Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 195.2 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.841/2.841, allocations: 226.5 MB / 245.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00119/0.001191, allocations: 91.03 kB / 297.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003828, allocations: 8 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3934, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1842/0.5776, allocations: 84.01 MB / 492.7 MB, free: 7.609 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004147/0.5781, allocations: 75.97 kB / 492.7 MB, free: 7.535 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08689/0.6651, allocations: 15.05 MB / 0.4959 GB, free: 8.461 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.038e-06/0.6651, allocations: 0 / 0.4959 GB, free: 8.461 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.047e-05/0.6652, allocations: 20 kB / 0.4959 GB, free: 8.441 MB / 378.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.006011/0.6713, allocations: 1.196 MB / 0.4971 GB, free: 7.191 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.893e-05/0.6714, allocations: 8.031 kB / 0.4971 GB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.6724, allocations: 112 kB / 0.4972 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.6738, allocations: 467.7 kB / 0.4976 GB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.6739, allocations: 29.38 kB / 0.4977 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002642/0.6742, allocations: 40.31 kB / 0.4977 GB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003236/0.6775, allocations: 0.6464 MB / 0.4983 GB, free: 5.848 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.159e-05/0.6776, allocations: 192 / 0.4983 GB, free: 5.848 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.6777, allocations: 19.94 kB / 0.4983 GB, free: 5.828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.6778, allocations: 8 kB / 0.4984 GB, free: 5.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00398/0.6818, allocations: 0.7133 MB / 0.4991 GB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007388/0.6892, allocations: 1.772 MB / 0.5008 GB, free: 3.258 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.6916, allocations: 0.5104 MB / 0.5013 GB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.6932, allocations: 317.5 kB / 0.5016 GB, free: 2.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.6933, allocations: 7.984 kB / 0.5016 GB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002179/0.6955, allocations: 0.4905 MB / 0.5021 GB, free: 1.895 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 8.997e-06/0.6956, allocations: 0 / 0.5021 GB, free: 1.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.424/1.12, allocations: 3.036 MB / 0.505 GB, free: 94.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.551e-05/1.12, allocations: 84.94 kB / 0.5051 GB, free: 93.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002807/1.122, allocations: 0.8819 MB / 0.506 GB, free: 93.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002738/1.123, allocations: 52.86 kB / 0.506 GB, free: 93.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/1.123, allocations: 296.2 kB / 0.5063 GB, free: 93.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003478/1.123, allocations: 165.6 kB / 0.5065 GB, free: 93.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/1.124, allocations: 10.97 kB / 0.5065 GB, free: 93.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000202/1.124, allocations: 383.4 kB / 0.5068 GB, free: 93.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/1.125, allocations: 329.1 kB / 0.5072 GB, free: 93.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/1.127, allocations: 432.7 kB / 0.5076 GB, free: 93.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/1.129, allocations: 0.534 MB / 0.5081 GB, free: 93.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/1.129, allocations: 1.125 kB / 0.5081 GB, free: 93.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.004763/1.133, allocations: 1.015 MB / 0.5091 GB, free: 93.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/1.134, allocations: 11.75 kB / 0.5091 GB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/1.134, allocations: 2.594 kB / 0.5091 GB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/1.135, allocations: 0.5364 MB / 0.5096 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007355/1.136, allocations: 119 kB / 0.5097 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009153/1.145, allocations: 4.489 MB / 0.5141 GB, free: 89.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002978/1.148, allocations: 304.4 kB / 0.5144 GB, free: 89.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/1.149, allocations: 20.72 kB / 0.5144 GB, free: 89.27 MB / 378.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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001166/1.15, allocations: 262.6 kB / 0.5147 GB, free: 89.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006027/1.15, allocations: 71.03 kB / 0.5147 GB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004275/1.151, allocations: 105.7 kB / 0.5148 GB, free: 89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/1.151, allocations: 10.7 kB / 0.5149 GB, free: 89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/1.151, allocations: 0 / 0.5149 GB, free: 89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/1.151, allocations: 3.656 kB / 0.5149 GB, free: 89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004837/1.156, allocations: 1.548 MB / 0.5164 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/1.156, allocations: 3.906 kB / 0.5164 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006436/1.156, allocations: 87.11 kB / 0.5165 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/1.158, allocations: 0.5038 MB / 0.517 GB, free: 88.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/1.158, allocations: 22.83 kB / 0.517 GB, free: 88.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008413/1.166, allocations: 4.181 MB / 0.5211 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.166, allocations: 0 / 0.5211 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005022/1.171, allocations: 1.316 MB / 0.5223 GB, free: 84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00069/1.172, allocations: 248.6 kB / 0.5226 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002693/1.172, allocations: 27.84 kB / 0.5226 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002042/1.175, allocations: 300.1 kB / 0.5229 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001959/1.177, allocations: 0.6472 MB / 0.5235 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/1.177, allocations: 30.7 kB / 0.5236 GB, free: 83.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001636/1.178, allocations: 0.6401 MB / 0.5242 GB, free: 83.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.178, allocations: 0 / 0.5242 GB, free: 83.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001891/1.18, allocations: 230.3 kB / 0.5244 GB, free: 83.4 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001892/1.182, allocations: 399.3 kB / 0.5248 GB, free: 83.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004038/1.186, allocations: 0.9848 MB / 0.5257 GB, free: 82.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.186, allocations: 1.016 kB / 0.5257 GB, free: 82.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001676/1.188, allocations: 0.6339 MB / 0.5264 GB, free: 82.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/1.189, allocations: 80.62 kB / 0.5264 GB, free: 82.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006092/1.196, allocations: 2.335 MB / 0.5287 GB, free: 80.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/1.196, allocations: 0.9221 MB / 0.5296 GB, free: 79.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/1.197, allocations: 50.98 kB / 0.5297 GB, free: 79.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.213e-06/1.197, allocations: 0 / 0.5297 GB, free: 79.48 MB / 378.7 MB Notification: Performance of Templates: time 0.02928/1.226, allocations: 14.55 MB / 0.5439 GB, free: 65.55 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches