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.001064/0.001064, allocations: 89 kB / 16.31 MB, free: 5.645 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.001073/0.001073, allocations: 178.8 kB / 17.2 MB, free: 5.566 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.579/1.579, allocations: 223.3 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002891, allocations: 5.25 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1384, allocations: 50.42 MB / 351.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002543/0.1409, allocations: 1.686 MB / 352.9 MB, free: 10 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.1421, allocations: 0.5496 MB / 353.5 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.1423, allocations: 4 kB / 353.5 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.1425, allocations: 11.86 kB / 353.5 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.1427, allocations: 19.84 kB / 353.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.143, allocations: 63.81 kB / 353.6 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001867/0.1432, allocations: 123.5 kB / 353.7 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.1434, allocations: 45.67 kB / 353.7 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.533e-05/0.1435, allocations: 35.86 kB / 353.8 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.39e-05/0.1436, allocations: 55.7 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.1436, allocations: 4 kB / 353.8 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.114e-05/0.1436, allocations: 4 kB / 353.8 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.835e-05/0.1437, allocations: 23.91 kB / 353.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.994e-05/0.1437, allocations: 53.58 kB / 353.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.1439, allocations: 103.7 kB / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1439, allocations: 0 / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1439, allocations: 0 / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1439, allocations: 0 / 354 MB, free: 8.902 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.0006974/0.1446, allocations: 426.8 kB / 354.4 MB, free: 8.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.1447, allocations: 12.03 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.362e-05/0.1448, allocations: 23.77 kB / 354.5 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.1451, allocations: 222.6 kB / 354.7 MB, free: 8.145 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.1451, allocations: 8 kB / 354.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.1452, allocations: 12 kB / 354.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005588/0.1457, allocations: 257.2 kB / 354.9 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.1458, allocations: 0 / 354.9 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.1458, allocations: 11.94 kB / 355 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1458, allocations: 4 kB / 355 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.1461, allocations: 99.88 kB / 355.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007532/0.1468, allocations: 0.6037 MB / 355.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.1472, allocations: 151.9 kB / 355.8 MB, free: 6.887 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.1474, allocations: 82.64 kB / 355.9 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.1474, allocations: 3.984 kB / 355.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1474, allocations: 34.56 kB / 355.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1475, allocations: 3.938 kB / 355.9 MB, free: 6.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005198/0.148, allocations: 201.4 kB / 356.1 MB, free: 6.543 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.1481, allocations: 114.9 kB / 356.2 MB, free: 6.406 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.1482, allocations: 154.2 kB / 356.4 MB, free: 6.246 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1483, allocations: 25.7 kB / 356.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.277e-05/0.1483, allocations: 116.3 kB / 356.5 MB, free: 6.098 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.1484, allocations: 27.72 kB / 356.6 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/0.1484, allocations: 0 / 356.6 MB, free: 6.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1485, allocations: 327.2 kB / 356.9 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1486, allocations: 48.34 kB / 356.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.1489, allocations: 147.9 kB / 357.1 MB, free: 5.504 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.149, allocations: 55.92 kB / 357.1 MB, free: 5.449 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1491, allocations: 7.938 kB / 357.1 MB, free: 5.441 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003644/0.1494, allocations: 209.1 kB / 357.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1494, allocations: 4.469 kB / 357.3 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1495, allocations: 8 kB / 357.3 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1495, allocations: 4 kB / 357.3 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.1496, allocations: 55.84 kB / 357.4 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.1497, allocations: 7.984 kB / 357.4 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.1498, allocations: 23.89 kB / 357.4 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.1498, allocations: 8 kB / 357.4 MB, free: 5.121 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.1499, allocations: 141.7 kB / 357.6 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.1501, allocations: 93.44 kB / 357.7 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.1502, allocations: 20.7 kB / 357.7 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1502, allocations: 4 kB / 357.7 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1502, allocations: 0 / 357.7 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1502, allocations: 240 / 357.7 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.1505, allocations: 213.5 kB / 357.9 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1506, allocations: 4 kB / 357.9 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001647/0.1507, allocations: 35.98 kB / 357.9 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1507, allocations: 7.984 kB / 358 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1508, allocations: 4 kB / 358 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1508, allocations: 0 / 358 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1508, allocations: 3.938 kB / 358 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.1514, allocations: 405.6 kB / 358.4 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.198e-05/0.1515, allocations: 108.9 kB / 358.5 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.1515, allocations: 4 kB / 358.5 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.1516, allocations: 8 kB / 358.5 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.1517, allocations: 16.05 kB / 358.5 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.1517, allocations: 4 kB / 358.5 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.802e-05/0.1518, allocations: 120.1 kB / 358.6 MB, free: 3.848 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1518, allocations: 0 / 358.6 MB, free: 3.848 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1521, allocations: 24 kB / 358.6 MB, free: 3.824 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001205/0.1522, allocations: 109.6 kB / 358.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.1526, allocations: 131.7 kB / 358.9 MB, free: 3.582 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1526, allocations: 4.094 kB / 358.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.921e-05/0.1527, allocations: 36.86 kB / 358.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.1532, allocations: 67.89 kB / 359 MB, free: 3.477 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008058/0.154, allocations: 0.5017 MB / 359.5 MB, free: 2.938 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.1543, allocations: 0.7245 MB / 360.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.472e-05/0.1544, allocations: 9.422 kB / 360.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.1544, allocations: 15.44 kB / 360.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1544, allocations: 0 / 360.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of Templates: time 0.003935/0.1584, allocations: 1.146 MB / 361.4 MB, free: 1.059 MB / 286.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