Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 94.94 kB / 16.3 MB, free: 5.609 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.001022/0.001022, allocations: 187.9 kB / 17.2 MB, free: 5.539 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.342/1.342, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002863, allocations: 11.94 kB / 300.7 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.101, allocations: 50.42 MB / 351.1 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002135/0.1032, allocations: 1.637 MB / 352.8 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007794/0.104, allocations: 0.499 MB / 353.3 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.05e-05/0.1041, allocations: 0 / 353.3 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.315e-05/0.1041, allocations: 19.86 kB / 353.3 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.1043, allocations: 31.88 kB / 353.3 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.1045, allocations: 43.89 kB / 353.4 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001316/0.1046, allocations: 75.84 kB / 353.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1048, allocations: 45.03 kB / 353.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.619e-05/0.1048, allocations: 39.86 kB / 353.5 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.838e-05/0.1049, allocations: 39.78 kB / 353.6 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.105, allocations: 4 kB / 353.6 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.676e-05/0.105, allocations: 8 kB / 353.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.105, allocations: 23.91 kB / 353.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.693e-05/0.1051, allocations: 49.52 kB / 353.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.1052, allocations: 88.03 kB / 353.7 MB, free: 1.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1052, allocations: 4 kB / 353.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1052, allocations: 0 / 353.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.237e-06/0.1052, allocations: 0 / 353.7 MB, free: 1.168 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005663/0.1058, allocations: 415.8 kB / 354.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.1058, allocations: 8.031 kB / 354.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.1059, allocations: 15.81 kB / 354.2 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.1061, allocations: 206 kB / 354.4 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1061, allocations: 4 kB / 354.4 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.1061, allocations: 16 kB / 354.4 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.1066, allocations: 251.1 kB / 354.6 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1066, allocations: 3.953 kB / 354.6 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.1067, allocations: 4 kB / 354.6 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1067, allocations: 4 kB / 354.7 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002564/0.1069, allocations: 95.88 kB / 354.7 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006809/0.1076, allocations: 0.5882 MB / 355.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.108, allocations: 159.8 kB / 355.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.108, allocations: 7.938 kB / 355.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1081, allocations: 38.5 kB / 355.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.1081, allocations: 0 / 355.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005125/0.1086, allocations: 197.4 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.1087, allocations: 114.9 kB / 355.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.1088, allocations: 137.3 kB / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.1088, allocations: 25.7 kB / 356 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.1089, allocations: 108 kB / 356.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.1089, allocations: 31.64 kB / 356.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-06/0.1089, allocations: 4 kB / 356.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.109, allocations: 322.8 kB / 356.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1091, allocations: 40.34 kB / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.1093, allocations: 146.4 kB / 356.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1095, allocations: 59.92 kB / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1095, allocations: 0 / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003704/0.1098, allocations: 209.5 kB / 356.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1099, allocations: 16.03 kB / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1099, allocations: 4 kB / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1099, allocations: 4 kB / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.1101, allocations: 43.92 kB / 357 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.1101, allocations: 7.984 kB / 357 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1102, allocations: 27.84 kB / 357 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.1102, allocations: 11.95 kB / 357 MB, free: 13.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.1103, allocations: 133.7 kB / 357.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.1105, allocations: 93.52 kB / 357.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.485e-05/0.1106, allocations: 12.72 kB / 357.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1106, allocations: 4.469 kB / 357.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1106, allocations: 0 / 357.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1106, allocations: 0 / 357.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.1109, allocations: 213.5 kB / 357.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1109, allocations: 0 / 357.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.1111, allocations: 47.84 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1111, allocations: 4 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1111, allocations: 0 / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1111, allocations: 0 / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1112, allocations: 4 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/0.1117, allocations: 426.7 kB / 357.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.337e-05/0.1118, allocations: 85.05 kB / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/0.1118, allocations: 4.062 kB / 358 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.112, allocations: 15.98 kB / 358 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.112, allocations: 7.953 kB / 358 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.112, allocations: 4 kB / 358 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.171e-05/0.1121, allocations: 107.2 kB / 358.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1121, allocations: 0 / 358.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.1124, allocations: 24 kB / 358.2 MB, free: 12.29 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.0001051/0.1125, allocations: 103.2 kB / 358.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003154/0.1128, allocations: 131.8 kB / 358.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1129, allocations: 4.062 kB / 358.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.113, allocations: 36 kB / 358.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.1133, allocations: 56 kB / 358.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006991/0.114, allocations: 485.4 kB / 359 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1144, allocations: 0.7166 MB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.729e-05/0.1144, allocations: 9.094 kB / 359.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.393e-05/0.1145, allocations: 19.42 kB / 359.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1145, allocations: 0 / 359.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Templates: time 0.003672/0.1181, allocations: 1.012 MB / 360.7 MB, free: 9.68 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches