Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 83.84 kB / 16.31 MB, free: 6.449 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.001263/0.001264, allocations: 178.8 kB / 17.21 MB, free: 6.32 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.443/1.443, allocations: 223.3 MB / 241.2 MB, free: 344 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003527, allocations: 8 kB / 300.8 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1299, allocations: 50.4 MB / 351.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002595/0.1325, allocations: 1.703 MB / 352.9 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1336, allocations: 491 kB / 353.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.1338, allocations: 7.938 kB / 353.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.1339, allocations: 11.92 kB / 353.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.908e-05/0.134, allocations: 23.8 kB / 353.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.1344, allocations: 43.95 kB / 353.5 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.1346, allocations: 127.5 kB / 353.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.1348, allocations: 49.31 kB / 353.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.1349, allocations: 31.86 kB / 353.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.1351, allocations: 59.7 kB / 353.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.017e-05/0.1351, allocations: 4 kB / 353.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.005e-05/0.1351, allocations: 7.938 kB / 353.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.171e-05/0.1352, allocations: 15.92 kB / 353.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.1352, allocations: 45.64 kB / 353.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.1354, allocations: 84.05 kB / 353.9 MB, free: 1.328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.1354, allocations: 3.984 kB / 353.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1354, allocations: 0 / 353.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1354, allocations: 0 / 353.9 MB, free: 1.324 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006828/0.1361, allocations: 422.9 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1361, allocations: 8.031 kB / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.1362, allocations: 15.81 kB / 354.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.1365, allocations: 206.5 kB / 354.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.1365, allocations: 8 kB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.1365, allocations: 16 kB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005346/0.1371, allocations: 226.6 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1371, allocations: 0 / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.1371, allocations: 11.95 kB / 354.8 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1372, allocations: 8 kB / 354.8 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.1374, allocations: 87.88 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007969/0.1382, allocations: 0.5997 MB / 355.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.1386, allocations: 155.9 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.1388, allocations: 82.61 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.1388, allocations: 8 kB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1388, allocations: 38.5 kB / 355.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.1389, allocations: 3.938 kB / 355.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005018/0.1394, allocations: 193.4 kB / 356 MB, free: 15.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.179e-05/0.1395, allocations: 114.8 kB / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.1396, allocations: 144.8 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.1396, allocations: 25.7 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/0.1397, allocations: 120 kB / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.1397, allocations: 31.69 kB / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-06/0.1397, allocations: 4 kB / 356.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1399, allocations: 322.8 kB / 356.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.14, allocations: 40.34 kB / 356.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.1402, allocations: 141.6 kB / 356.9 MB, free: 14.01 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.1405, allocations: 161.1 kB / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1405, allocations: 4 kB / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003887/0.1409, allocations: 201.2 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.1409, allocations: 4 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.141, allocations: 4 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.141, allocations: 8.469 kB / 357.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.1411, allocations: 51.91 kB / 357.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.1412, allocations: 4 kB / 357.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.1413, allocations: 31.78 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.1413, allocations: 8 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.000134/0.1415, allocations: 133.7 kB / 357.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.1416, allocations: 93.44 kB / 357.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/0.1417, allocations: 20.7 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1417, allocations: 4 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1417, allocations: 480 / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1417, allocations: 0 / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003051/0.142, allocations: 205.6 kB / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.142, allocations: 0 / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.1423, allocations: 51.91 kB / 357.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.1423, allocations: 3.938 kB / 357.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1423, allocations: 4 kB / 357.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.1423, allocations: 7.984 kB / 357.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1423, allocations: 4 kB / 357.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.1429, allocations: 395.3 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.143, allocations: 96.91 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.143, allocations: 8 kB / 358.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.1431, allocations: 8 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.1432, allocations: 7.984 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.1432, allocations: 12 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.433e-05/0.1433, allocations: 109.8 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1433, allocations: 0 / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003338/0.1436, allocations: 24 kB / 358.5 MB, free: 12.25 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 (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.0001269/0.1438, allocations: 103.2 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003591/0.1441, allocations: 131.8 kB / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1442, allocations: 0 / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1443, allocations: 36.78 kB / 358.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005284/0.1448, allocations: 60.08 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.1458, allocations: 0.5037 MB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1462, allocations: 0.7167 MB / 360.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.922e-05/0.1462, allocations: 9.078 kB / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.1463, allocations: 15.44 kB / 360.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1463, allocations: 0 / 360.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Templates: time 0.004022/0.1503, allocations: 1.132 MB / 361.2 MB, free: 9.512 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches