Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 110.2 kB / 17.17 MB, free: 6.344 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.001813/0.001813, allocations: 194.9 kB / 18.08 MB, free: 5.441 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.129/2.129, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 47.73 kB / 300.6 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1526, allocations: 49.45 MB / 350.1 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.005299/0.1579, allocations: 2.034 MB / 352.1 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.1592, allocations: 0.5026 MB / 352.6 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1594, allocations: 4 kB / 352.6 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.1595, allocations: 7.922 kB / 352.6 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.1597, allocations: 23.78 kB / 352.6 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.1602, allocations: 44.84 kB / 352.7 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002412/0.1604, allocations: 119.6 kB / 352.8 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.1607, allocations: 52.95 kB / 352.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.1608, allocations: 39.8 kB / 352.9 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.1609, allocations: 59.69 kB / 352.9 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.1609, allocations: 8 kB / 352.9 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.143e-05/0.161, allocations: 8 kB / 353 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.161, allocations: 23.92 kB / 353 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.736e-05/0.1611, allocations: 55.67 kB / 353 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.1613, allocations: 88.06 kB / 353.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1613, allocations: 0 / 353.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1614, allocations: 0 / 353.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.1614, allocations: 0 / 353.1 MB, free: 1.801 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008443/0.1622, allocations: 431 kB / 353.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.1623, allocations: 8.031 kB / 353.5 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.558e-05/0.1624, allocations: 16.84 kB / 353.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.1627, allocations: 205.9 kB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.1627, allocations: 12.31 kB / 353.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.566e-05/0.1628, allocations: 16.28 kB / 353.8 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007278/0.1635, allocations: 242.9 kB / 354 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.1636, allocations: 4 kB / 354 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.1636, allocations: 8 kB / 354 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1636, allocations: 4 kB / 354 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.164, allocations: 87.86 kB / 354.1 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008868/0.1649, allocations: 0.5843 MB / 354.7 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004239/0.1654, allocations: 147.9 kB / 354.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.1656, allocations: 78.61 kB / 354.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/0.1657, allocations: 8 kB / 354.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.1657, allocations: 34.5 kB / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 4.198e-06/0.1658, allocations: 0 / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.000788/0.1666, allocations: 189.2 kB / 355.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/0.1667, allocations: 110.9 kB / 355.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.1668, allocations: 137.3 kB / 355.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.1669, allocations: 29.7 kB / 355.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.188e-05/0.167, allocations: 112 kB / 355.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.167, allocations: 27.64 kB / 355.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.453e-05/0.1671, allocations: 37.7 kB / 355.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1673, allocations: 322.8 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.1675, allocations: 35.97 kB / 356 MB, free: 14.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/0.1677, allocations: 128.8 kB / 356.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000429/0.1682, allocations: 180.7 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1682, allocations: 0 / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005711/0.1688, allocations: 193.1 kB / 356.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.1688, allocations: 8.375 kB / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1688, allocations: 448 / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.895e-05/0.1689, allocations: 15.94 kB / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.1692, allocations: 39.92 kB / 356.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/0.1692, allocations: 11.92 kB / 356.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.1694, allocations: 15.94 kB / 356.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.1694, allocations: 8 kB / 356.5 MB, free: 13.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.000156/0.1696, allocations: 137.7 kB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.1698, allocations: 85.44 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.479e-05/0.1699, allocations: 24.64 kB / 356.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1699, allocations: 4.234 kB / 356.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.17, allocations: 0 / 356.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.17, allocations: 3.984 kB / 356.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.1704, allocations: 197.6 kB / 357 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1704, allocations: 4 kB / 357 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.1707, allocations: 31.98 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.979e-06/0.1707, allocations: 4 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.1708, allocations: 7.922 kB / 357 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.1708, allocations: 3.938 kB / 357 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.1708, allocations: 4 kB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008188/0.1716, allocations: 367.4 kB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.156e-05/0.1717, allocations: 88.98 kB / 357.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.1718, allocations: 11.94 kB / 357.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.172, allocations: 15.98 kB / 357.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/0.1721, allocations: 7.984 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.1721, allocations: 4 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.114e-05/0.1722, allocations: 99.27 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1722, allocations: 3.938 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005999/0.1728, allocations: 24 kB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001349/0.173, allocations: 99.25 kB / 357.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004662/0.1734, allocations: 127.1 kB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1734, allocations: 0 / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.1736, allocations: 27.97 kB / 357.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.1744, allocations: 53.17 kB / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.1756, allocations: 473.3 kB / 358.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.176, allocations: 0.7048 MB / 359.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.752e-05/0.176, allocations: 19.42 kB / 359.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.176, allocations: 0 / 359.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of Templates: time 0.004701/0.1807, allocations: 1.474 MB / 360.6 MB, free: 9.746 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches