Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 114.7 kB / 17.7 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.00106, allocations: 50.95 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1199, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003641/0.1236, allocations: 1.852 MB / 353.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008748/0.1245, allocations: 454.8 kB / 353.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1246, allocations: 0 / 353.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1248, allocations: 15.86 kB / 353.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.387e-05/0.1249, allocations: 23.78 kB / 353.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001868/0.1251, allocations: 31.91 kB / 353.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002098/0.1253, allocations: 115.6 kB / 354 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.1255, allocations: 37.38 kB / 354 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.301e-05/0.1256, allocations: 35.86 kB / 354.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.1257, allocations: 43.83 kB / 354.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.1258, allocations: 8 kB / 354.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.18e-05/0.1258, allocations: 11.94 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.31e-05/0.1258, allocations: 27.92 kB / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.068e-05/0.1259, allocations: 43.73 kB / 354.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.1261, allocations: 99.61 kB / 354.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1261, allocations: 4 kB / 354.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1261, allocations: 0 / 354.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1261, allocations: 3.938 kB / 354.3 MB, free: 0.9062 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006276/0.1268, allocations: 403.3 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1268, allocations: 8.031 kB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1269, allocations: 16.84 kB / 354.7 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.1272, allocations: 196.2 kB / 354.9 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1272, allocations: 4.562 kB / 354.9 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.1273, allocations: 20.22 kB / 354.9 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.1276, allocations: 122.7 kB / 355 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1276, allocations: 0 / 355 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.1276, allocations: 8 kB / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1276, allocations: 3.938 kB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.1279, allocations: 71.91 kB / 355.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006842/0.1286, allocations: 0.5246 MB / 355.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.1288, allocations: 78.61 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.1289, allocations: 40.83 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.1289, allocations: 4 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.1289, allocations: 34.56 kB / 355.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.129, allocations: 0 / 355.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003871/0.1293, allocations: 129.6 kB / 355.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.1294, allocations: 55.41 kB / 356 MB, free: 15.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.1295, allocations: 125.8 kB / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.1295, allocations: 25.7 kB / 356.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.532e-05/0.1296, allocations: 119.8 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.1296, allocations: 19.66 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.773e-05/0.1297, allocations: 29.7 kB / 356.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1298, allocations: 326.8 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.13, allocations: 31.97 kB / 356.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.1301, allocations: 65.39 kB / 356.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.1303, allocations: 112.1 kB / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1303, allocations: 0 / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002793/0.1306, allocations: 141.4 kB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.1306, allocations: 8.125 kB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1306, allocations: 0 / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.1306, allocations: 4 kB / 357 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.1308, allocations: 27.98 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1308, allocations: 0 / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.608e-05/0.1309, allocations: 23.83 kB / 357 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.1309, allocations: 4 kB / 357 MB, free: 13.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.298e-05/0.131, allocations: 125.7 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.1311, allocations: 11.91 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.1311, allocations: 16.36 kB / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1311, allocations: 4 kB / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1311, allocations: 0 / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1311, allocations: 0 / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.1313, allocations: 193.6 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1313, allocations: 7.922 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.1315, allocations: 19.98 kB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1315, allocations: 0 / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1315, allocations: 0 / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1315, allocations: 12 kB / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1315, allocations: 0 / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003896/0.1319, allocations: 235.2 kB / 357.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/0.132, allocations: 81.02 kB / 357.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.132, allocations: 8 kB / 357.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.092e-05/0.1321, allocations: 12.03 kB / 357.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.328e-05/0.1322, allocations: 0 / 357.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.1322, allocations: 7.984 kB / 357.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.893e-05/0.1322, allocations: 99.27 kB / 357.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1322, allocations: 0 / 357.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000249/0.1325, allocations: 23.84 kB / 357.9 MB, free: 12.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000121/0.1326, allocations: 99.34 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.1329, allocations: 88.16 kB / 358 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1329, allocations: 0 / 358 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.895e-05/0.133, allocations: 39.95 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.1334, allocations: 21.47 kB / 358.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000733/0.1341, allocations: 372.9 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.1344, allocations: 0.7002 MB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.963e-05/0.1345, allocations: 4.438 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.1345, allocations: 15.42 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1345, allocations: 4 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Templates: time 0.003692/0.1382, allocations: 0.9754 MB / 360.2 MB, free: 10.6 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches