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.001657/0.001657, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.002055/0.002055, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.18/2.18, allocations: 222.9 MB / 241.7 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 42.66 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1354, allocations: 49.44 MB / 350 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.006297/0.1418, allocations: 1.929 MB / 352 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1429, allocations: 450.9 kB / 352.4 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1431, allocations: 0 / 352.4 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1433, allocations: 15.86 kB / 352.4 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.1434, allocations: 23.78 kB / 352.5 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002085/0.1437, allocations: 23.97 kB / 352.5 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.1439, allocations: 99.59 kB / 352.6 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.1441, allocations: 29.39 kB / 352.6 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.559e-05/0.1442, allocations: 31.92 kB / 352.6 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.1444, allocations: 51.75 kB / 352.7 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.1444, allocations: 12 kB / 352.7 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.277e-05/0.1445, allocations: 4 kB / 352.7 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.801e-05/0.1445, allocations: 15.92 kB / 352.7 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.977e-05/0.1446, allocations: 39.75 kB / 352.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.1448, allocations: 80.08 kB / 352.8 MB, free: 2.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1448, allocations: 0 / 352.8 MB, free: 2.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1448, allocations: 0 / 352.8 MB, free: 2.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.1449, allocations: 0 / 352.8 MB, free: 2.07 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.0008625/0.1457, allocations: 411.3 kB / 353.2 MB, free: 1.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.1458, allocations: 8.031 kB / 353.2 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.716e-05/0.1459, allocations: 12.84 kB / 353.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.1462, allocations: 192.1 kB / 353.4 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.1462, allocations: 8.562 kB / 353.4 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.595e-05/0.1463, allocations: 16.28 kB / 353.5 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.1468, allocations: 122.4 kB / 353.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1468, allocations: 0 / 353.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.1468, allocations: 8 kB / 353.6 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.1468, allocations: 0 / 353.6 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003772/0.1472, allocations: 75.89 kB / 353.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.1484, allocations: 0.5207 MB / 354.2 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.1487, allocations: 86.52 kB / 354.3 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.149, allocations: 36.84 kB / 354.3 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.149, allocations: 7.922 kB / 354.3 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.1491, allocations: 38.5 kB / 354.4 MB, free: 376 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.994e-06/0.1491, allocations: 0 / 354.4 MB, free: 376 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.000707/0.1498, allocations: 121.5 kB / 354.5 MB, free: 248 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.1499, allocations: 55.41 kB / 354.5 MB, free: 180 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.15, allocations: 125.3 kB / 354.6 MB, free: 48 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1501, allocations: 29.7 kB / 354.7 MB, free: 12 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.1502, allocations: 123.9 kB / 354.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/0.1503, allocations: 27.64 kB / 354.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-05/0.1504, allocations: 25.72 kB / 354.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1506, allocations: 318.8 kB / 355.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1508, allocations: 35.97 kB / 355.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.151, allocations: 72.27 kB / 355.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.1514, allocations: 96.2 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1514, allocations: 7.984 kB / 355.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005045/0.152, allocations: 137.4 kB / 355.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.152, allocations: 4 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.152, allocations: 0 / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.1521, allocations: 4 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.1524, allocations: 31.97 kB / 355.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.1524, allocations: 0 / 355.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.1525, allocations: 23.95 kB / 355.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.1526, allocations: 4 kB / 355.6 MB, free: 15.06 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 0.0001324/0.1527, allocations: 125.7 kB / 355.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.1528, allocations: 7.906 kB / 355.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.1528, allocations: 12.38 kB / 355.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1528, allocations: 0 / 355.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1529, allocations: 96 / 355.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1529, allocations: 3.938 kB / 355.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.1532, allocations: 201.6 kB / 355.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1533, allocations: 0 / 355.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002221/0.1535, allocations: 19.98 kB / 355.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1535, allocations: 0 / 355.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.1535, allocations: 8 kB / 355.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1535, allocations: 0 / 355.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1536, allocations: 0 / 355.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.1542, allocations: 247.2 kB / 356.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.49e-05/0.1542, allocations: 81.02 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.1543, allocations: 4 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.1544, allocations: 8.031 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.1545, allocations: 4 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1545, allocations: 4 kB / 356.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.1546, allocations: 95.27 kB / 356.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1546, allocations: 0 / 356.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004663/0.1551, allocations: 31.84 kB / 356.4 MB, free: 14.13 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.00015/0.1552, allocations: 103.2 kB / 356.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004562/0.1557, allocations: 79.89 kB / 356.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1557, allocations: 0 / 356.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.1559, allocations: 35.91 kB / 356.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006921/0.1566, allocations: 24.19 kB / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1579, allocations: 428.1 kB / 357.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.1582, allocations: 0.7052 MB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.876e-05/0.1583, allocations: 11.44 kB / 357.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1583, allocations: 0 / 357.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of Templates: time 0.004428/0.1628, allocations: 1.258 MB / 359 MB, free: 11.43 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 -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