Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.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.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 199.6 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 1.369/1.369, allocations: 226.5 MB / 245.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 102.4 kB / 297.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 4 kB / 357.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2972, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.4233, allocations: 79.16 MB / 487.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4237, allocations: 75.95 kB / 487.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01106/0.4347, allocations: 4.255 MB / 492.1 MB, free: 8.125 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4348, allocations: 0 / 492.1 MB, free: 8.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.4348, allocations: 4 kB / 492.2 MB, free: 8.121 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006348/0.4354, allocations: 495 kB / 492.6 MB, free: 7.586 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.4355, allocations: 12.03 kB / 492.6 MB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.4357, allocations: 36.64 kB / 492.7 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.4359, allocations: 236.5 kB / 492.9 MB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.436, allocations: 20.81 kB / 492.9 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.436, allocations: 20.38 kB / 493 MB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.4364, allocations: 191.8 kB / 493.1 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.4364, allocations: 12.06 kB / 493.2 MB, free: 7.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.4364, allocations: 15.94 kB / 493.2 MB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4365, allocations: 4 kB / 493.2 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.4367, allocations: 145.7 kB / 493.3 MB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008969/0.4376, allocations: 0.6266 MB / 493.9 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.4379, allocations: 181 kB / 494.1 MB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.4381, allocations: 109.8 kB / 494.2 MB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.4382, allocations: 4 kB / 494.2 MB, free: 5.883 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.4382, allocations: 34.56 kB / 494.3 MB, free: 5.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.4382, allocations: 0 / 494.3 MB, free: 5.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.002044/0.4403, allocations: 1.069 MB / 495.3 MB, free: 4.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.4403, allocations: 51.41 kB / 495.4 MB, free: 4.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.4405, allocations: 192.8 kB / 495.6 MB, free: 4.418 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.4405, allocations: 29.7 kB / 495.6 MB, free: 4.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.074e-05/0.4406, allocations: 136.7 kB / 495.7 MB, free: 4.246 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.088e-05/0.4407, allocations: 122.3 kB / 495.9 MB, free: 4.125 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.307e-05/0.4407, allocations: 4 kB / 495.9 MB, free: 4.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4409, allocations: 330.8 kB / 496.2 MB, free: 3.789 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.441, allocations: 75.95 kB / 496.3 MB, free: 3.715 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.4412, allocations: 107.4 kB / 496.4 MB, free: 3.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.4415, allocations: 188.4 kB / 496.5 MB, free: 3.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4415, allocations: 0 / 496.5 MB, free: 3.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005258/0.442, allocations: 303.6 kB / 496.8 MB, free: 3.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.4421, allocations: 8 kB / 496.8 MB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.4421, allocations: 3.938 kB / 496.9 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.4423, allocations: 44.83 kB / 496.9 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.4425, allocations: 59.97 kB / 497 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.4439, allocations: 1.577 MB / 498.5 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.444, allocations: 12.06 kB / 498.5 MB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.4441, allocations: 11.98 kB / 498.6 MB, free: 1.254 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001383/0.4442, allocations: 134.4 kB / 498.7 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.4443, allocations: 23.72 kB / 498.7 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.4443, allocations: 30.59 kB / 498.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.4443, allocations: 7.938 kB / 498.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4444, allocations: 0 / 498.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.4444, allocations: 7.984 kB / 498.8 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.4454, allocations: 0.7859 MB / 499.5 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4455, allocations: 192 / 499.5 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.4457, allocations: 59.97 kB / 499.6 MB, free: 128 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.4458, allocations: 44.7 kB / 499.6 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.4459, allocations: 4 kB / 499.6 MB, free: 76 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009956/0.4469, allocations: 1.382 MB / 0.4893 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4469, allocations: 3.984 kB / 0.4893 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006677/0.4476, allocations: 495.1 kB / 0.4898 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.4476, allocations: 92.92 kB / 0.4898 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.4477, allocations: 12.03 kB / 0.4899 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.4478, allocations: 8 kB / 0.4899 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.4479, allocations: 27.91 kB / 0.4899 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.4479, allocations: 4 kB / 0.4899 GB, free: 13.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001026/0.448, allocations: 131.2 kB / 0.49 GB, free: 13.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.448, allocations: 4 kB / 0.49 GB, free: 13.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003796/0.4484, allocations: 68 kB / 0.4901 GB, free: 13.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001542/0.4486, allocations: 119.1 kB / 0.4902 GB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005935/0.4492, allocations: 343.6 kB / 0.4905 GB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.4492, allocations: 0 / 0.4905 GB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.4495, allocations: 243.4 kB / 0.4908 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.4499, allocations: 35.98 kB / 0.4908 GB, free: 12.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.4512, allocations: 0.9004 MB / 0.4917 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4515, allocations: 0.7525 MB / 0.4924 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.072e-05/0.4516, allocations: 31.42 kB / 0.4924 GB, free: 11.18 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4516, allocations: 0 / 0.4924 GB, free: 11.18 MB / 378.7 MB Notification: Performance of Templates: time 0.005308/0.4569, allocations: 3.805 MB / 0.4962 GB, free: 7.375 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches