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.0008957/0.0008958, allocations: 92.19 kB / 17.31 MB, free: 5.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.0009736/0.0009736, allocations: 182.4 kB / 18.21 MB, free: 5.191 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.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002291, allocations: 8 kB / 302.1 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07213/0.07237, allocations: 50.41 MB / 352.5 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001978/0.07438, allocations: 1.749 MB / 354.2 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006751/0.07508, allocations: 0.491 MB / 354.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.556e-05/0.07516, allocations: 0 / 354.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.77e-05/0.07525, allocations: 11.92 kB / 354.7 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.018e-05/0.07532, allocations: 19.78 kB / 354.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.07556, allocations: 51.95 kB / 354.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.07572, allocations: 123.5 kB / 354.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.07585, allocations: 49.47 kB / 355 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.358e-05/0.07592, allocations: 35.8 kB / 355 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.15e-05/0.076, allocations: 51.75 kB / 355.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.07602, allocations: 7.938 kB / 355.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.646e-05/0.07604, allocations: 11.94 kB / 355.1 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.445e-05/0.07607, allocations: 15.94 kB / 355.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.119e-05/0.07614, allocations: 77.38 kB / 355.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.07625, allocations: 84.03 kB / 355.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.07626, allocations: 7.938 kB / 355.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.07627, allocations: 0 / 355.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.07627, allocations: 0 / 355.3 MB, free: 0.668 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.0004836/0.07676, allocations: 423.1 kB / 355.7 MB, free: 212 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.0768, allocations: 8.031 kB / 355.7 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.864e-05/0.07684, allocations: 16.75 kB / 355.7 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.07703, allocations: 212 kB / 355.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.07705, allocations: 8.375 kB / 355.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.07709, allocations: 16.36 kB / 355.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004418/0.07754, allocations: 234.9 kB / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.07756, allocations: 3.984 kB / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.07758, allocations: 4 kB / 356.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.07759, allocations: 0 / 356.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002645/0.07786, allocations: 103.8 kB / 356.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.07844, allocations: 0.5998 MB / 356.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.07877, allocations: 155.9 kB / 357 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.07894, allocations: 78.64 kB / 357.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.07897, allocations: 7.969 kB / 357.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.079, allocations: 46.5 kB / 357.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.079, allocations: 0 / 357.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005156/0.07952, allocations: 193.6 kB / 357.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.0796, allocations: 114.8 kB / 357.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.19e-05/0.0797, allocations: 136.9 kB / 357.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.07972, allocations: 29.7 kB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.07978, allocations: 115.9 kB / 357.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.07981, allocations: 19.81 kB / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.07985, allocations: 26.08 kB / 357.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.608e-05/0.07994, allocations: 322.9 kB / 358.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.08007, allocations: 43.97 kB / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.08025, allocations: 151.8 kB / 358.3 MB, free: 13.31 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 = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004231/0.08068, allocations: 298.6 kB / 358.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.0807, allocations: 4 kB / 358.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003837/0.08109, allocations: 209.1 kB / 358.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.08111, allocations: 8 kB / 358.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.08112, allocations: 4 kB / 358.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.08114, allocations: 7.938 kB / 358.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.0813, allocations: 48.44 kB / 358.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.08132, allocations: 7.938 kB / 358.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.08144, allocations: 23.89 kB / 358.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.08146, allocations: 8 kB / 358.9 MB, free: 12.63 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 = PI.y_start. 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.388e-05/0.08156, allocations: 133.7 kB / 359 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.08172, allocations: 93.47 kB / 359.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.153e-05/0.08177, allocations: 20.7 kB / 359.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.08178, allocations: 4 kB / 359.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.08179, allocations: 4 kB / 359.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.0818, allocations: 0 / 359.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.08205, allocations: 205.5 kB / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.08206, allocations: 0 / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.08228, allocations: 43.97 kB / 359.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.08229, allocations: 7.938 kB / 359.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.08231, allocations: 7.984 kB / 359.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.08232, allocations: 0 / 359.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.08232, allocations: 8 kB / 359.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005243/0.08285, allocations: 395.3 kB / 359.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.08291, allocations: 96.88 kB / 359.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.08294, allocations: 8 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.08309, allocations: 4 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.107e-05/0.08313, allocations: 7.984 kB / 359.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.08314, allocations: 4 kB / 359.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.898e-05/0.0832, allocations: 113.9 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08321, allocations: 0 / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.08354, allocations: 28 kB / 360 MB, free: 11.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 7.745e-05/0.08363, allocations: 107.1 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003388/0.08397, allocations: 132.3 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.08399, allocations: 3.938 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.0841, allocations: 35.97 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000477/0.08459, allocations: 72.44 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007869/0.08538, allocations: 0.5366 MB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.08561, allocations: 0.7165 MB / 361.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.08566, allocations: 15.44 kB / 361.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.08567, allocations: 0 / 361.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of Templates: time 0.002782/0.08845, allocations: 1.581 MB / 363.2 MB, free: 8.105 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/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