Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001675/0.00168, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.96/1.96, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001134, allocations: 96.34 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005428/0.000543, allocations: 8 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3291, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4525, allocations: 77.59 MB / 452.1 MB, free: 3.203 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.4529, allocations: 75.91 kB / 452.2 MB, free: 3.129 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01743/0.4703, allocations: 4.042 MB / 456.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4704, allocations: 0 / 456.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.4704, allocations: 8 kB / 456.2 MB, free: 15.07 MB / 346.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.0009055/0.4713, allocations: 490.9 kB / 456.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4714, allocations: 12.03 kB / 456.7 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.88e-05/0.4715, allocations: 27.62 kB / 456.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.4718, allocations: 231.4 kB / 457 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.4719, allocations: 20.44 kB / 457 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.703e-05/0.4719, allocations: 23.95 kB / 457 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.4725, allocations: 195.2 kB / 457.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.4725, allocations: 0 / 457.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.4726, allocations: 12 kB / 457.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.4726, allocations: 4 kB / 457.2 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.4731, allocations: 141.7 kB / 457.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.4744, allocations: 0.6313 MB / 458 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.4749, allocations: 182.8 kB / 458.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.475, allocations: 416 / 458.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.475, allocations: 42.5 kB / 458.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.734e-06/0.475, allocations: 0 / 458.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.00293/0.478, allocations: 1.085 MB / 459.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.4781, allocations: 55.41 kB / 459.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.4783, allocations: 158.3 kB / 459.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.4783, allocations: 29.7 kB / 459.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.4785, allocations: 203.1 kB / 459.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.4786, allocations: 118.2 kB / 459.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.4786, allocations: 8 kB / 459.9 MB, free: 11.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4788, allocations: 330.8 kB / 460.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.479, allocations: 71.72 kB / 460.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.4793, allocations: 104.7 kB / 460.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.4796, allocations: 93.39 kB / 460.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4796, allocations: 0 / 460.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008188/0.4805, allocations: 288 kB / 460.7 MB, free: 10.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4805, allocations: 4 kB / 460.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.4805, allocations: 0 / 460.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.4808, allocations: 52.84 kB / 460.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/0.4812, allocations: 55.91 kB / 460.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/0.4833, allocations: 1.581 MB / 462.4 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.4836, allocations: 12 kB / 462.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.4836, allocations: 8.375 kB / 462.5 MB, free: 8.41 MB / 346.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.0002035/0.4838, allocations: 133.8 kB / 462.6 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/0.4839, allocations: 27.83 kB / 462.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.988e-05/0.484, allocations: 34.64 kB / 462.6 MB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.484, allocations: 4 kB / 462.6 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.484, allocations: 4 kB / 462.6 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.484, allocations: 0 / 462.6 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.4858, allocations: 0.7863 MB / 463.4 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.4858, allocations: 3.984 kB / 463.4 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005184/0.4863, allocations: 63.86 kB / 463.5 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/0.4866, allocations: 36.94 kB / 463.5 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.4866, allocations: 8 kB / 463.5 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001559/0.4882, allocations: 1.394 MB / 464.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4882, allocations: 0 / 464.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.4894, allocations: 0.5141 MB / 465.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.439e-05/0.4895, allocations: 96.83 kB / 465.5 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.4895, allocations: 7.953 kB / 465.6 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.4898, allocations: 12.03 kB / 465.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.844e-05/0.4899, allocations: 27.97 kB / 465.6 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.4899, allocations: 12 kB / 465.6 MB, free: 4.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.4901, allocations: 131.5 kB / 465.7 MB, free: 4.836 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.4901, allocations: 0 / 465.7 MB, free: 4.836 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000567/0.4907, allocations: 64 kB / 465.8 MB, free: 4.773 MB / 346.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.0001982/0.4909, allocations: 111.1 kB / 465.9 MB, free: 4.656 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.492, allocations: 342.5 kB / 466.2 MB, free: 4.309 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.4921, allocations: 4 kB / 466.2 MB, free: 4.305 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006051/0.4927, allocations: 247.1 kB / 466.5 MB, free: 4.051 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.4933, allocations: 40.11 kB / 466.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.4956, allocations: 0.9099 MB / 467.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.4961, allocations: 0.7641 MB / 468.2 MB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.4962, allocations: 19.44 kB / 468.2 MB, free: 2.25 MB / 346.7 MB Notification: Performance of SimCode: time 1.413e-06/0.4962, allocations: 0 / 468.2 MB, free: 2.25 MB / 346.7 MB Notification: Performance of Templates: time 0.009097/0.5053, allocations: 3.687 MB / 471.9 MB, free: 14.57 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches