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.001599/0.001599, allocations: 179.9 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001041/0.00104, allocations: 90.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2804/0.2804, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.318e-05/3.347e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 58.86 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4782/0.5983, allocations: 86.3 MB / 0.5571 GB, free: 1.316 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.5986, allocations: 71.5 kB / 0.5571 GB, free: 1.281 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01032/0.609, allocations: 2.488 MB / 0.5596 GB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.609, allocations: 0 / 0.5596 GB, free: 15.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.6091, allocations: 4 kB / 0.5596 GB, free: 15.17 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006238/0.6097, allocations: 405 kB / 0.56 GB, free: 14.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.6098, allocations: 8.031 kB / 0.56 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.286e-05/0.6098, allocations: 23.75 kB / 0.56 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.6101, allocations: 202 kB / 0.5602 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.6102, allocations: 7.625 kB / 0.5602 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.6102, allocations: 11.56 kB / 0.5602 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.6106, allocations: 126 kB / 0.5603 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.6106, allocations: 0 / 0.5603 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.6106, allocations: 3.562 kB / 0.5603 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.6107, allocations: 11.94 kB / 0.5603 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.6109, allocations: 72.8 kB / 0.5604 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009957/0.6119, allocations: 456.9 kB / 0.5608 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.6122, allocations: 119.7 kB / 0.561 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.6124, allocations: 50.05 kB / 0.561 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.6124, allocations: 0 / 0.561 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.6124, allocations: 38.38 kB / 0.561 GB, free: 13.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.923e-06/0.6125, allocations: 0 / 0.561 GB, free: 13.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001843/0.6143, allocations: 0.7588 MB / 0.5618 GB, free: 12.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.6144, allocations: 51.41 kB / 0.5618 GB, free: 12.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.6146, allocations: 126.4 kB / 0.5619 GB, free: 12.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.6146, allocations: 33.14 kB / 0.562 GB, free: 12.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.6147, allocations: 176.9 kB / 0.5621 GB, free: 12.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.041e-05/0.6148, allocations: 64.62 kB / 0.5622 GB, free: 12.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.112e-05/0.6148, allocations: 8 kB / 0.5622 GB, free: 12.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.6149, allocations: 318.1 kB / 0.5625 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.6151, allocations: 41.38 kB / 0.5626 GB, free: 12.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.6152, allocations: 65.69 kB / 0.5626 GB, free: 12.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.6154, allocations: 55.92 kB / 0.5627 GB, free: 12.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.6154, allocations: 0 / 0.5627 GB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005306/0.616, allocations: 191.2 kB / 0.5629 GB, free: 11.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.616, allocations: 11.88 kB / 0.5629 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.616, allocations: 0 / 0.5629 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002295/0.6163, allocations: 39.34 kB / 0.5629 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.6166, allocations: 43.05 kB / 0.563 GB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.6185, allocations: 1.55 MB / 0.5645 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.6187, allocations: 4 kB / 0.5645 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.6188, allocations: 7.5 kB / 0.5645 GB, free: 10.27 MB / 378.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 () * 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.000125/0.6189, allocations: 116.6 kB / 0.5646 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.984e-05/0.619, allocations: 11.86 kB / 0.5646 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.022e-05/0.6191, allocations: 25.92 kB / 0.5646 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.6191, allocations: 0 / 0.5646 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6191, allocations: 7.938 kB / 0.5646 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.6191, allocations: 0 / 0.5646 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.6203, allocations: 0.5423 MB / 0.5652 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.6203, allocations: 0 / 0.5652 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.6206, allocations: 35.36 kB / 0.5652 GB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.6208, allocations: 35.95 kB / 0.5652 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.6209, allocations: 3.312 kB / 0.5652 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.6222, allocations: 1.373 MB / 0.5666 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.6223, allocations: 3.984 kB / 0.5666 GB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006701/0.623, allocations: 346.1 kB / 0.5669 GB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.6231, allocations: 92.45 kB / 0.567 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.6231, allocations: 7.984 kB / 0.567 GB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.6233, allocations: 7.688 kB / 0.567 GB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.97e-05/0.6234, allocations: 19.98 kB / 0.567 GB, free: 7.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.6234, allocations: 7.625 kB / 0.567 GB, free: 7.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.6235, allocations: 104.5 kB / 0.5671 GB, free: 7.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6235, allocations: 0 / 0.5671 GB, free: 7.566 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000463/0.624, allocations: 43.5 kB / 0.5672 GB, free: 7.531 MB / 378.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 () * 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.0001456/0.6241, allocations: 98.81 kB / 0.5673 GB, free: 7.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005901/0.6247, allocations: 250.1 kB / 0.5675 GB, free: 7.211 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.6248, allocations: 3.938 kB / 0.5675 GB, free: 7.207 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.6251, allocations: 187.6 kB / 0.5677 GB, free: 7.031 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.6254, allocations: 27.17 kB / 0.5677 GB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008687/0.6263, allocations: 350.8 kB / 0.5681 GB, free: 6.668 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.6267, allocations: 0.7285 MB / 0.5688 GB, free: 5.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.6268, allocations: 15.44 kB / 0.5688 GB, free: 5.895 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6268, allocations: 0 / 0.5688 GB, free: 5.895 MB / 378.7 MB Notification: Performance of Templates: time 0.005761/0.6325, allocations: 2.334 MB / 0.5711 GB, free: 3.586 MB / 378.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