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.001178/0.001178, allocations: 91.62 kB / 16.65 MB, free: 6.59 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.001313/0.001313, allocations: 181.5 kB / 17.56 MB, free: 6.203 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.473/1.473, allocations: 223.3 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002468, allocations: 13.31 kB / 301.4 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 50.4 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002536/0.1209, allocations: 1.714 MB / 353.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.1219, allocations: 0.5569 MB / 354.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1221, allocations: 7.938 kB / 354.1 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.1222, allocations: 11.86 kB / 354.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1223, allocations: 23.84 kB / 354.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.1226, allocations: 71.81 kB / 354.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.1228, allocations: 115.6 kB / 354.3 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.123, allocations: 57.33 kB / 354.4 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.947e-05/0.1231, allocations: 51.72 kB / 354.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.778e-05/0.1232, allocations: 47.7 kB / 354.5 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.1232, allocations: 8 kB / 354.5 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.924e-05/0.1232, allocations: 4 kB / 354.5 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.099e-05/0.1233, allocations: 23.92 kB / 354.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.1234, allocations: 89.3 kB / 354.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001646/0.1236, allocations: 135.7 kB / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1236, allocations: 0 / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1236, allocations: 0 / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1236, allocations: 0 / 354.7 MB, free: 0.7891 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.000597/0.1242, allocations: 423 kB / 355.1 MB, free: 336 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.1242, allocations: 16.03 kB / 355.1 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.843e-05/0.1243, allocations: 20.66 kB / 355.2 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.1245, allocations: 219.2 kB / 355.4 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.1245, allocations: 12.36 kB / 355.4 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.1246, allocations: 12.38 kB / 355.4 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.1251, allocations: 266.2 kB / 355.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1251, allocations: 4 kB / 355.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.1252, allocations: 4 kB / 355.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.1252, allocations: 7.984 kB / 355.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.1255, allocations: 99.88 kB / 355.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00064/0.1261, allocations: 0.592 MB / 356.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.1265, allocations: 159.8 kB / 356.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.1267, allocations: 86.62 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.1267, allocations: 3.938 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.1267, allocations: 34.56 kB / 356.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.1267, allocations: 4 kB / 356.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005402/0.1273, allocations: 201.3 kB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.1274, allocations: 115.3 kB / 357 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.1275, allocations: 158.2 kB / 357.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1275, allocations: 25.7 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.503e-05/0.1276, allocations: 116.3 kB / 357.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.1276, allocations: 31.64 kB / 357.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.1277, allocations: 21.7 kB / 357.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1278, allocations: 322.8 kB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1279, allocations: 43.97 kB / 357.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.1281, allocations: 144.8 kB / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.1284, allocations: 201.5 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1284, allocations: 0 / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003888/0.1288, allocations: 213.5 kB / 358.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1288, allocations: 8 kB / 358.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1289, allocations: 4 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.1289, allocations: 4 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.129, allocations: 47.91 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.1291, allocations: 8 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.1292, allocations: 19.84 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.1292, allocations: 15.98 kB / 358.3 MB, free: 12.8 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.000111/0.1293, allocations: 142.2 kB / 358.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.1295, allocations: 97.38 kB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.1296, allocations: 20.7 kB / 358.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1296, allocations: 4 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1296, allocations: 3.938 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1297, allocations: 0 / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.1299, allocations: 209.5 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1299, allocations: 0 / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.1301, allocations: 43.97 kB / 358.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.1301, allocations: 0 / 358.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1302, allocations: 8 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1302, allocations: 0 / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1302, allocations: 3.938 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005537/0.1307, allocations: 403.3 kB / 359.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.443e-05/0.1308, allocations: 104.9 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.1309, allocations: 3.984 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.131, allocations: 16.06 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.555e-05/0.1311, allocations: 7.984 kB / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.1311, allocations: 4.094 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.978e-05/0.1312, allocations: 124 kB / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1312, allocations: 0 / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003314/0.1315, allocations: 31.94 kB / 359.5 MB, free: 11.49 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.0001191/0.1317, allocations: 103.2 kB / 359.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003232/0.132, allocations: 136.8 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.132, allocations: 0 / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.1321, allocations: 36.05 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.1326, allocations: 74.97 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007899/0.1334, allocations: 0.5094 MB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.1337, allocations: 0.7204 MB / 361.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.694e-05/0.1338, allocations: 17.36 kB / 361.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.492e-05/0.1338, allocations: 15.44 kB / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1338, allocations: 0 / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of Templates: time 0.003782/0.1376, allocations: 1.197 MB / 362.3 MB, free: 8.664 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