Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009755/0.0009754, allocations: 200.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008911/0.0008911, allocations: 111.2 kB / 297.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3211, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.4796, allocations: 83.26 MB / 492.6 MB, free: 8.258 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4798, allocations: 75.95 kB / 492.7 MB, free: 8.184 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02865/0.5085, allocations: 10.27 MB / 0.4912 GB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5085, allocations: 0 / 0.4912 GB, free: 13.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.747e-05/0.5086, allocations: 15.98 kB / 0.4912 GB, free: 13.88 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001617/0.5102, allocations: 0.772 MB / 0.492 GB, free: 13.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.5103, allocations: 12.03 kB / 0.492 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002539/0.5105, allocations: 60.36 kB / 0.492 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.511, allocations: 335.2 kB / 0.4923 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.5111, allocations: 41.31 kB / 0.4924 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.5112, allocations: 48.22 kB / 0.4924 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008736/0.5121, allocations: 462.9 kB / 0.4929 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.5121, allocations: 12.12 kB / 0.4929 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.5122, allocations: 19.94 kB / 0.4929 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.5122, allocations: 8 kB / 0.4929 GB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009289/0.5131, allocations: 463.7 kB / 0.4934 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.5154, allocations: 1.184 MB / 0.4945 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008447/0.5163, allocations: 428 kB / 0.4949 GB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005124/0.5168, allocations: 274.2 kB / 0.4952 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.5168, allocations: 4.562 kB / 0.4952 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.5169, allocations: 39.12 kB / 0.4952 GB, free: 9.594 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 1.973e-06/0.5169, allocations: 0 / 0.4952 GB, free: 9.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.005171/0.5221, allocations: 2.383 MB / 0.4975 GB, free: 7.086 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.5221, allocations: 63.91 kB / 0.4976 GB, free: 7.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.5225, allocations: 296.6 kB / 0.4979 GB, free: 6.723 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.5226, allocations: 45.7 kB / 0.4979 GB, free: 6.672 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.5227, allocations: 181.3 kB / 0.4981 GB, free: 6.492 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.5229, allocations: 213.1 kB / 0.4983 GB, free: 6.281 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.523, allocations: 16 kB / 0.4983 GB, free: 6.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.5231, allocations: 350.7 kB / 0.4987 GB, free: 5.914 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/0.5237, allocations: 233.2 kB / 0.4989 GB, free: 5.684 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005222/0.5242, allocations: 272.8 kB / 0.4991 GB, free: 5.414 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007666/0.525, allocations: 394.3 kB / 0.4995 GB, free: 5.023 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.525, allocations: 0 / 0.4995 GB, free: 5.023 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001346/0.5263, allocations: 0.7015 MB / 0.5002 GB, free: 4.309 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.5264, allocations: 11.98 kB / 0.5002 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.5264, allocations: 0 / 0.5002 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007281/0.5271, allocations: 321.5 kB / 0.5005 GB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003464/0.5275, allocations: 91.89 kB / 0.5006 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.5288, allocations: 1.374 MB / 0.502 GB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.5293, allocations: 112 kB / 0.5021 GB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.5293, allocations: 20.09 kB / 0.5021 GB, free: 2.332 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002226/0.5296, allocations: 173.7 kB / 0.5022 GB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.988e-05/0.5296, allocations: 43.52 kB / 0.5023 GB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.5298, allocations: 59.8 kB / 0.5023 GB, free: 2.047 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.5298, allocations: 7.938 kB / 0.5024 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.5298, allocations: 4 kB / 0.5024 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.5298, allocations: 0 / 0.5024 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.5326, allocations: 1.47 MB / 0.5038 GB, free: 496 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.5326, allocations: 4 kB / 0.5038 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003847/0.533, allocations: 91.98 kB / 0.5039 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006794/0.5337, allocations: 293.5 kB / 0.5042 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.527e-05/0.5338, allocations: 23.97 kB / 0.5042 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1774/0.7112, allocations: 1.344 MB / 0.5055 GB, free: 93.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.7113, allocations: 1.094 kB / 0.5055 GB, free: 93.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.7134, allocations: 1.055 MB / 0.5065 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.7137, allocations: 175.8 kB / 0.5067 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.33e-05/0.7138, allocations: 22.5 kB / 0.5067 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.7142, allocations: 80.59 kB / 0.5068 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.7145, allocations: 118.8 kB / 0.5069 GB, free: 93.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.062e-05/0.7146, allocations: 27.64 kB / 0.5069 GB, free: 93.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002383/0.7148, allocations: 210 kB / 0.5071 GB, free: 93.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7148, allocations: 0 / 0.5071 GB, free: 93.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005223/0.7153, allocations: 136 kB / 0.5073 GB, free: 93.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007783/0.7161, allocations: 399.4 kB / 0.5076 GB, free: 93.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.7173, allocations: 0.5701 MB / 0.5082 GB, free: 93.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7173, allocations: 3.562 kB / 0.5082 GB, free: 93.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000625/0.7179, allocations: 336.2 kB / 0.5085 GB, free: 93.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.7186, allocations: 87.41 kB / 0.5086 GB, free: 93.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.7222, allocations: 1.802 MB / 0.5104 GB, free: 92.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.7225, allocations: 0.8307 MB / 0.5112 GB, free: 91.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.7227, allocations: 45.66 kB / 0.5112 GB, free: 91.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.752e-05/0.7228, allocations: 34.75 kB / 0.5113 GB, free: 91.73 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.7228, allocations: 1.375 kB / 0.5113 GB, free: 91.73 MB / 378.7 MB Notification: Performance of Templates: time 0.01104/0.7338, allocations: 8.839 MB / 0.5199 GB, free: 90.1 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches