Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001284/0.001284, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 67.69 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.119, allocations: 50.54 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003611/0.1226, allocations: 2.024 MB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1239, allocations: 0.6154 MB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.1241, allocations: 0 / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1242, allocations: 19.8 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.1244, allocations: 31.72 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.1248, allocations: 71.8 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001919/0.125, allocations: 131.6 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.1252, allocations: 57.83 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.21e-05/0.1253, allocations: 51.73 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.643e-05/0.1254, allocations: 63.69 kB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.1254, allocations: 12 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.436e-05/0.1254, allocations: 12 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.357e-05/0.1255, allocations: 31.86 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.522e-05/0.1256, allocations: 67.59 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.1258, allocations: 135.8 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1258, allocations: 0 / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1258, allocations: 0 / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1258, allocations: 4 kB / 360.8 MB, free: 10.7 MB / 302.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.0006747/0.1265, allocations: 458.8 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1265, allocations: 15.97 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.1266, allocations: 20.66 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.1269, allocations: 215.3 kB / 361.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1269, allocations: 12.31 kB / 361.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.1269, allocations: 16.38 kB / 361.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005424/0.1275, allocations: 257.4 kB / 361.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1275, allocations: 0 / 361.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.1275, allocations: 8 kB / 361.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1275, allocations: 4 kB / 361.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.1278, allocations: 87.88 kB / 361.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007074/0.1285, allocations: 0.5998 MB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.1289, allocations: 143.7 kB / 362.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.1291, allocations: 82.77 kB / 362.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.1291, allocations: 7.969 kB / 362.7 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.1291, allocations: 38.56 kB / 362.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.1292, allocations: 0 / 362.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005481/0.1297, allocations: 185.3 kB / 363 MB, free: 8.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.1298, allocations: 110.8 kB / 363.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.13, allocations: 160.8 kB / 363.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.13, allocations: 29.7 kB / 363.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.092e-05/0.1301, allocations: 116.3 kB / 363.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.1301, allocations: 31.64 kB / 363.4 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.1302, allocations: 37.7 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1303, allocations: 322.8 kB / 363.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1304, allocations: 35.97 kB / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.1306, allocations: 145 kB / 363.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.1309, allocations: 185.5 kB / 364.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.131, allocations: 3.938 kB / 364.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003951/0.1314, allocations: 197.4 kB / 364.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1314, allocations: 12.09 kB / 364.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1314, allocations: 4 kB / 364.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1314, allocations: 4 kB / 364.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.1316, allocations: 51.91 kB / 364.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.1316, allocations: 4 kB / 364.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1317, allocations: 19.83 kB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.1317, allocations: 12 kB / 364.4 MB, free: 6.734 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.0001283/0.1319, allocations: 141.7 kB / 364.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.132, allocations: 93.52 kB / 364.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.125e-05/0.1321, allocations: 20.72 kB / 364.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1321, allocations: 0 / 364.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1321, allocations: 4 kB / 364.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1321, allocations: 0 / 364.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.1324, allocations: 213.4 kB / 364.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1324, allocations: 4 kB / 364.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.1326, allocations: 39.97 kB / 364.9 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1326, allocations: 4.406 kB / 364.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1327, allocations: 8 kB / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1327, allocations: 0 / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1327, allocations: 0 / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005496/0.1332, allocations: 383.2 kB / 365.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.238e-05/0.1333, allocations: 105.1 kB / 365.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.1334, allocations: 8 kB / 365.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.1335, allocations: 7.984 kB / 365.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.1335, allocations: 11.94 kB / 365.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.1336, allocations: 4 kB / 365.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.391e-05/0.1337, allocations: 119.4 kB / 365.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1337, allocations: 0 / 365.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.134, allocations: 35.84 kB / 365.6 MB, free: 5.453 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.0001122/0.1341, allocations: 103.2 kB / 365.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.1345, allocations: 123.8 kB / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1345, allocations: 0.9375 kB / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1346, allocations: 32.23 kB / 365.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.1351, allocations: 68.03 kB / 365.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008278/0.136, allocations: 425.8 kB / 366.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.1363, allocations: 0.7201 MB / 367 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.134e-05/0.1364, allocations: 9.422 kB / 367.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.037e-05/0.1364, allocations: 15.44 kB / 367.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1364, allocations: 0 / 367.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of Templates: time 0.004438/0.1409, allocations: 1.342 MB / 368.4 MB, free: 2.602 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches