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.001441/0.001441, allocations: 106.6 kB / 16.62 MB, free: 6.809 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.001633/0.001633, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.41/1.41, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009715/0.0009715, allocations: 42.8 kB / 300.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09384, allocations: 49.44 MB / 349.6 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004122/0.09802, allocations: 2.048 MB / 351.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.0991, allocations: 0.5337 MB / 352.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.09925, allocations: 0 / 352.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.09939, allocations: 11.88 kB / 352.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.09953, allocations: 23.84 kB / 352.2 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.09979, allocations: 51.88 kB / 352.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.09998, allocations: 123.6 kB / 352.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.1002, allocations: 49.3 kB / 352.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.998e-05/0.1002, allocations: 59.7 kB / 352.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.1003, allocations: 55.77 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.1004, allocations: 8 kB / 352.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.311e-05/0.1004, allocations: 12 kB / 352.5 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.406e-05/0.1005, allocations: 27.92 kB / 352.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.764e-05/0.1005, allocations: 67.66 kB / 352.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.1007, allocations: 119.8 kB / 352.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1007, allocations: 0 / 352.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1007, allocations: 0 / 352.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1008, allocations: 4 kB / 352.7 MB, free: 1.477 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.0006899/0.1014, allocations: 427 kB / 353.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1015, allocations: 8.031 kB / 353.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.691e-05/0.1016, allocations: 20.84 kB / 353.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.1018, allocations: 208 kB / 353.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.1018, allocations: 12.36 kB / 353.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.1018, allocations: 16.38 kB / 353.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.1024, allocations: 250.2 kB / 353.7 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1024, allocations: 4 kB / 353.7 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.1024, allocations: 0 / 353.7 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.1024, allocations: 4 kB / 353.7 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.1027, allocations: 87.88 kB / 353.8 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.1033, allocations: 0.5921 MB / 354.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.1037, allocations: 155.8 kB / 354.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.1038, allocations: 70.64 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1039, allocations: 4 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.1039, allocations: 42.5 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.1039, allocations: 3.938 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004885/0.1044, allocations: 189.2 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.1045, allocations: 114.8 kB / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1046, allocations: 129.4 kB / 355 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.1046, allocations: 37.83 kB / 355.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.1047, allocations: 111.8 kB / 355.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.1047, allocations: 23.7 kB / 355.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.1048, allocations: 33.72 kB / 355.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1049, allocations: 322.8 kB / 355.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.105, allocations: 35.97 kB / 355.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.1052, allocations: 137.6 kB / 355.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.1054, allocations: 189.5 kB / 355.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1054, allocations: 4 kB / 355.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003356/0.1058, allocations: 201 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1058, allocations: 10.64 kB / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1058, allocations: 4.469 kB / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1058, allocations: 8 kB / 356.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.106, allocations: 43.92 kB / 356.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.106, allocations: 4 kB / 356.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1061, allocations: 23.83 kB / 356.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.1061, allocations: 8 kB / 356.2 MB, free: 13.61 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 9.834e-05/0.1062, allocations: 142.1 kB / 356.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1064, allocations: 89.91 kB / 356.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.1065, allocations: 24.7 kB / 356.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1065, allocations: 96 / 356.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1065, allocations: 3.938 kB / 356.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.1065, allocations: 4 kB / 356.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/0.1068, allocations: 209.4 kB / 356.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1068, allocations: 0 / 356.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.107, allocations: 35.97 kB / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.107, allocations: 0 / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.107, allocations: 8 kB / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.107, allocations: 0 / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.107, allocations: 11.94 kB / 356.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004904/0.1075, allocations: 379.4 kB / 357.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.75e-05/0.1076, allocations: 89.22 kB / 357.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.1076, allocations: 7.938 kB / 357.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1078, allocations: 16.05 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.1078, allocations: 3.984 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-06/0.1078, allocations: 4 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.34e-05/0.1079, allocations: 99.27 kB / 357.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1079, allocations: 0 / 357.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.1082, allocations: 31.91 kB / 357.3 MB, free: 12.37 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.0001211/0.1083, allocations: 107.2 kB / 357.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.1087, allocations: 127.8 kB / 357.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1087, allocations: 0 / 357.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.627e-05/0.1088, allocations: 32.84 kB / 357.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.1093, allocations: 56.02 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006796/0.1099, allocations: 442 kB / 358.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.1102, allocations: 0.72 MB / 358.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.848e-05/0.1103, allocations: 9.094 kB / 358.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.1103, allocations: 15.44 kB / 358.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1103, allocations: 0 / 358.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Templates: time 0.003684/0.114, allocations: 1.143 MB / 360 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches