Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 181.1 kB / 17.41 MB, free: 4.289 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.636/1.636, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0007589/0.0007589, allocations: 81.94 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3408/0.3408, allocations: 43.56 MB / 363.8 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003956/0.0003959, allocations: 15.98 kB / 432.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.132, allocations: 58.84 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/0.4657, allocations: 86.43 MB / 0.5643 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/0.4661, allocations: 72.03 kB / 0.5644 GB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006719/0.4728, allocations: 2.497 MB / 0.5668 GB, free: 13.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4729, allocations: 0 / 0.5668 GB, free: 13.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.4729, allocations: 0 / 0.5668 GB, free: 13.45 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004864/0.4734, allocations: 421.6 kB / 0.5672 GB, free: 12.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.4734, allocations: 10.94 kB / 0.5672 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.4735, allocations: 16.75 kB / 0.5673 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000197/0.4737, allocations: 208.1 kB / 0.5675 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.4737, allocations: 8.375 kB / 0.5675 GB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.4737, allocations: 12.38 kB / 0.5675 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.474, allocations: 130.7 kB / 0.5676 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.4741, allocations: 4.094 kB / 0.5676 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.4741, allocations: 8.703 kB / 0.5676 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.4741, allocations: 7.125 kB / 0.5676 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.4743, allocations: 90.06 kB / 0.5677 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/0.475, allocations: 468.1 kB / 0.5681 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.4752, allocations: 118.5 kB / 0.5683 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.4753, allocations: 65.06 kB / 0.5683 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.4754, allocations: 4 kB / 0.5683 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.4754, allocations: 41.39 kB / 0.5684 GB, free: 11.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.4754, allocations: 0 / 0.5684 GB, free: 11.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001461/0.4769, allocations: 0.8163 MB / 0.5692 GB, free: 10.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.4769, allocations: 55.41 kB / 0.5692 GB, free: 10.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.477, allocations: 137.4 kB / 0.5693 GB, free: 10.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.4771, allocations: 29.7 kB / 0.5694 GB, free: 10.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.4771, allocations: 108.3 kB / 0.5695 GB, free: 10.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.4772, allocations: 64.12 kB / 0.5695 GB, free: 10.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.919e-06/0.4772, allocations: 8 kB / 0.5695 GB, free: 10.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4773, allocations: 322.8 kB / 0.5699 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.63e-05/0.4774, allocations: 47.98 kB / 0.5699 GB, free: 10.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.4776, allocations: 79.28 kB / 0.57 GB, free: 9.934 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.4778, allocations: 136.6 kB / 0.5701 GB, free: 9.789 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.4778, allocations: 3.938 kB / 0.5701 GB, free: 9.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003692/0.4782, allocations: 216 kB / 0.5703 GB, free: 9.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.4782, allocations: 4 kB / 0.5703 GB, free: 9.566 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.4782, allocations: 3.938 kB / 0.5703 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/0.4784, allocations: 40.84 kB / 0.5704 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.4786, allocations: 51.88 kB / 0.5704 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.4799, allocations: 1.551 MB / 0.5719 GB, free: 7.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.952e-05/0.48, allocations: 11.98 kB / 0.5719 GB, free: 7.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.48, allocations: 4 kB / 0.5719 GB, free: 7.773 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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.000128/0.4802, allocations: 133.7 kB / 0.5721 GB, free: 7.633 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.318e-05/0.4802, allocations: 7.906 kB / 0.5721 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/0.4802, allocations: 18.36 kB / 0.5721 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.4803, allocations: 3.984 kB / 0.5721 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4803, allocations: 12.05 kB / 0.5721 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.4803, allocations: 0 / 0.5721 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007298/0.481, allocations: 0.5621 MB / 0.5727 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.481, allocations: 0 / 0.5727 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.4812, allocations: 31.98 kB / 0.5727 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.626e-05/0.4813, allocations: 28.84 kB / 0.5727 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.4813, allocations: 12.81 kB / 0.5727 GB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.4824, allocations: 1.382 MB / 0.5741 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4824, allocations: 0 / 0.5741 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005001/0.4829, allocations: 353 kB / 0.5744 GB, free: 5.012 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.483, allocations: 92.89 kB / 0.5745 GB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.483, allocations: 4 kB / 0.5745 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.095e-05/0.4831, allocations: 4 kB / 0.5745 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.4832, allocations: 19.91 kB / 0.5745 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.4832, allocations: 8 kB / 0.5745 GB, free: 4.867 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.989e-05/0.4832, allocations: 110.9 kB / 0.5746 GB, free: 4.762 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4833, allocations: 0 / 0.5746 GB, free: 4.762 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.4836, allocations: 44 kB / 0.5747 GB, free: 4.719 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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.0001366/0.4837, allocations: 99.23 kB / 0.5748 GB, free: 4.609 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004767/0.4842, allocations: 264.9 kB / 0.575 GB, free: 4.344 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4842, allocations: 0 / 0.575 GB, free: 4.344 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002559/0.4845, allocations: 202.6 kB / 0.5752 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.4848, allocations: 24.64 kB / 0.5753 GB, free: 4.109 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007878/0.4856, allocations: 0.5387 MB / 0.5758 GB, free: 3.531 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.486, allocations: 0.7168 MB / 0.5765 GB, free: 2.785 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.486, allocations: 15.44 kB / 0.5765 GB, free: 2.77 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.486, allocations: 0 / 0.5765 GB, free: 2.77 MB / 394.7 MB Notification: Performance of Templates: time 0.003854/0.4899, allocations: 2.412 MB / 0.5788 GB, free: 372 kB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches