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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005266/0.005266, allocations: 146.9 kB / 24.98 MB, free: 8.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.942/0.942, allocations: 173.3 MB / 201.5 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] 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=5051,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=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 268 MB, free: 6.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.429e-05, allocations: 2.312 kB / 268 MB, free: 6.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002281/0.002295, allocations: 2.105 MB / 270.1 MB, free: 4.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006823/0.002977, allocations: 0.4986 MB / 270.6 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.173e-05/0.003059, allocations: 4 kB / 270.6 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.871e-05/0.003148, allocations: 19.8 kB / 270.7 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.138e-05/0.003199, allocations: 19.73 kB / 270.7 MB, free: 4.109 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.003392, allocations: 63.84 kB / 270.7 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.003523, allocations: 127.5 kB / 270.9 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.003632, allocations: 41.97 kB / 270.9 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.855e-05/0.00372, allocations: 79.8 kB / 271 MB, free: 3.793 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.047e-05/0.003781, allocations: 35.89 kB / 271 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.003803, allocations: 12 kB / 271 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.279e-05/0.003816, allocations: 12 kB / 271.1 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.003838, allocations: 23.92 kB / 271.1 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.886e-05/0.003877, allocations: 47.83 kB / 271.1 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.004017, allocations: 91.59 kB / 271.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.004019, allocations: 0 / 271.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.004019, allocations: 0 / 271.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.004023, allocations: 0 / 271.2 MB, free: 3.574 MB / 250.7 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.000394/0.004417, allocations: 456.1 kB / 271.7 MB, free: 3.094 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.004447, allocations: 12.92 kB / 271.7 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/0.004491, allocations: 24.84 kB / 271.7 MB, free: 3.059 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.004649, allocations: 167.8 kB / 271.9 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.00466, allocations: 8.375 kB / 271.9 MB, free: 2.863 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.004683, allocations: 12.38 kB / 271.9 MB, free: 2.852 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.004979, allocations: 220.8 kB / 272.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.004989, allocations: 4.188 kB / 272.1 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.005, allocations: 4.375 kB / 272.1 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.005009, allocations: 7.938 kB / 272.1 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.697e-05/0.005076, allocations: 39.91 kB / 272.1 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004338/0.00551, allocations: 0.6329 MB / 272.8 MB, free: 1.859 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.005697, allocations: 141.4 kB / 272.9 MB, free: 1.684 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.603e-05/0.005753, allocations: 59.08 kB / 273 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.005769, allocations: 3.938 kB / 273 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.005787, allocations: 41.39 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.005788, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002107/0.005999, allocations: 125.6 kB / 273.1 MB, free: 1.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.006056, allocations: 111 kB / 273.3 MB, free: 1.297 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/0.006146, allocations: 197.8 kB / 273.4 MB, free: 1.086 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.006158, allocations: 29.7 kB / 273.5 MB, free: 1.051 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.705e-05/0.006215, allocations: 158.7 kB / 273.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.006231, allocations: 27.83 kB / 273.7 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.006264, allocations: 31.38 kB / 273.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.006372, allocations: 0.4961 MB / 274.2 MB, free: 324 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.068e-05/0.006393, allocations: 8.125 kB / 274.2 MB, free: 316 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.414e-05/0.006447, allocations: 101 kB / 274.3 MB, free: 176 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.857e-05/0.006526, allocations: 105.4 kB / 274.4 MB, free: 36 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.006527, allocations: 0 / 274.4 MB, free: 36 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001159/0.006643, allocations: 101.5 kB / 274.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.006654, allocations: 8 kB / 274.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.006658, allocations: 0 / 274.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.00667, allocations: 4 kB / 274.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.538e-05/0.006736, allocations: 27.92 kB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.006744, allocations: 4 kB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.674e-05/0.00678, allocations: 19.83 kB / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.006788, allocations: 4.219 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 7.036e-05/0.006858, allocations: 168.5 kB / 274.7 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.006964, allocations: 93.52 kB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.748e-05/0.006992, allocations: 20.78 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.006994, allocations: 0 / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-06/0.006996, allocations: 4 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.007001, allocations: 3.984 kB / 274.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.007141, allocations: 148.5 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.007142, allocations: 0 / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.00725, allocations: 39.97 kB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.007252, allocations: 8 kB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.007266, allocations: 0 / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.007267, allocations: 0 / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.007269, allocations: 7.938 kB / 275 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.007528, allocations: 414.6 kB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.307e-05/0.007541, allocations: 11.89 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.007558, allocations: 8 kB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.954e-05/0.007617, allocations: 0 / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.007647, allocations: 7.984 kB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.007653, allocations: 8 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.675e-05/0.0077, allocations: 150.3 kB / 275.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0077, allocations: 0 / 275.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001889/0.007889, allocations: 35.83 kB / 275.7 MB, free: 14.68 MB / 266.7 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 6.387e-05/0.007953, allocations: 103.2 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.008067, allocations: 71.47 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.008068, allocations: 3.938 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.156e-05/0.00809, allocations: 20.11 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.008407, allocations: 62.72 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006558/0.009063, allocations: 366.7 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.706e-05/0.00911, allocations: 79.33 kB / 276.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.934e-05/0.009139, allocations: 16.95 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.948e-05/0.009168, allocations: 12.5 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.009169, allocations: 0 / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of Templates: time 0.002733/0.0119, allocations: 1.334 MB / 277.7 MB, free: 12.61 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7050297050736845]