Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001619/0.001619, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.00146, allocations: 49.45 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1272, allocations: 49.45 MB / 349.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00493/0.1322, allocations: 2.07 MB / 351.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1336, allocations: 0.5648 MB / 352.2 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.1337, allocations: 11.94 kB / 352.2 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.134, allocations: 7.922 kB / 352.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.1342, allocations: 27.78 kB / 352.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.1346, allocations: 59.89 kB / 352.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.1349, allocations: 131.6 kB / 352.4 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.1351, allocations: 57.84 kB / 352.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.1352, allocations: 47.8 kB / 352.5 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.1354, allocations: 63.69 kB / 352.6 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.1354, allocations: 8 kB / 352.6 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.173e-05/0.1355, allocations: 12 kB / 352.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.06e-05/0.1355, allocations: 35.84 kB / 352.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1357, allocations: 67.61 kB / 352.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.1359, allocations: 143.7 kB / 352.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1359, allocations: 4 kB / 352.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1359, allocations: 0 / 352.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.136, allocations: 0 / 352.9 MB, free: 1.219 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008598/0.1368, allocations: 450.9 kB / 353.3 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.1369, allocations: 8.031 kB / 353.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/0.137, allocations: 16.75 kB / 353.3 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.1373, allocations: 219.9 kB / 353.6 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.1373, allocations: 16.36 kB / 353.6 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.1374, allocations: 20.28 kB / 353.6 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007189/0.1381, allocations: 250.8 kB / 353.8 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1381, allocations: 11.94 kB / 353.8 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.1382, allocations: 4 kB / 353.8 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.1382, allocations: 4 kB / 353.9 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003691/0.1386, allocations: 83.88 kB / 353.9 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008776/0.1394, allocations: 0.5999 MB / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004809/0.1399, allocations: 143.9 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.1402, allocations: 82.62 kB / 354.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.1402, allocations: 0 / 354.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1403, allocations: 34.56 kB / 354.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.1403, allocations: 3.938 kB / 354.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007771/0.1411, allocations: 193.3 kB / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.62e-05/0.1412, allocations: 114.8 kB / 355.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1414, allocations: 154.2 kB / 355.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.1414, allocations: 29.7 kB / 355.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.109e-05/0.1415, allocations: 116.4 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.1415, allocations: 35.62 kB / 355.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.546e-05/0.1416, allocations: 33.84 kB / 355.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1418, allocations: 326.8 kB / 355.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.1419, allocations: 35.97 kB / 355.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.1422, allocations: 141.7 kB / 355.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.1426, allocations: 185.5 kB / 356.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.1427, allocations: 4 kB / 356.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005534/0.1432, allocations: 197.1 kB / 356.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1433, allocations: 4 kB / 356.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1433, allocations: 4 kB / 356.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1433, allocations: 4 kB / 356.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.1436, allocations: 47.92 kB / 356.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.1436, allocations: 12.39 kB / 356.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.1438, allocations: 24.22 kB / 356.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1438, allocations: 11.94 kB / 356.4 MB, free: 13.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.000159/0.144, allocations: 146.1 kB / 356.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.1442, allocations: 93.44 kB / 356.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.1444, allocations: 20.72 kB / 356.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1444, allocations: 3.984 kB / 356.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1444, allocations: 4 kB / 356.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1444, allocations: 0 / 356.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.1449, allocations: 217.5 kB / 356.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1449, allocations: 3.938 kB / 356.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.1452, allocations: 35.97 kB / 356.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.1452, allocations: 4 kB / 356.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.1452, allocations: 0 / 356.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1452, allocations: 0 / 356.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.1452, allocations: 4 kB / 357 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007969/0.146, allocations: 391.2 kB / 357.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1462, allocations: 97 kB / 357.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.1462, allocations: 4 kB / 357.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.1465, allocations: 7.984 kB / 357.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.1465, allocations: 8 kB / 357.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.1465, allocations: 12.05 kB / 357.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.1467, allocations: 120.1 kB / 357.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1467, allocations: 0 / 357.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.1473, allocations: 35.84 kB / 357.6 MB, free: 11.97 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 (15): * Single equations (assignments): 15 * 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.0001286/0.1474, allocations: 99.19 kB / 357.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004828/0.1479, allocations: 132.3 kB / 357.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1479, allocations: 0 / 357.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.1481, allocations: 23.98 kB / 357.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008032/0.1489, allocations: 72.25 kB / 357.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.15, allocations: 482.2 kB / 358.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.1505, allocations: 0.7239 MB / 359.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.881e-05/0.1506, allocations: 5.438 kB / 359.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.1507, allocations: 27.42 kB / 359.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1507, allocations: 0 / 359.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of Templates: time 0.005173/0.1559, allocations: 1.263 MB / 360.4 MB, free: 9.137 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches