Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007457/0.0007457, allocations: 88.28 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003685/0.003685, allocations: 152.3 kB / 24.69 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8515/0.8515, allocations: 177 MB / 204.9 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 325.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.067e-05/3.206e-05, allocations: 7.203 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002707/0.002739, allocations: 2.035 MB / 327.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007698/0.003509, allocations: 0.5142 MB / 328.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.97e-05/0.003609, allocations: 0 / 328.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.003714, allocations: 19.8 kB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.024e-05/0.003784, allocations: 35.66 kB / 328.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.004046, allocations: 63.73 kB / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.00421, allocations: 131.5 kB / 328.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.004349, allocations: 33.98 kB / 328.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.652e-05/0.004445, allocations: 79.8 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.592e-05/0.004511, allocations: 39.89 kB / 328.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.004541, allocations: 8 kB / 328.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.464e-05/0.004556, allocations: 12 kB / 328.7 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.724e-05/0.004583, allocations: 27.84 kB / 328.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.987e-05/0.004623, allocations: 39.91 kB / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.004811, allocations: 131.5 kB / 328.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.004814, allocations: 0 / 328.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.004816, allocations: 4 kB / 328.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.004821, allocations: 0 / 328.9 MB, free: 12.22 MB / 298.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.0004825/0.005304, allocations: 357.7 kB / 329.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.005342, allocations: 11.98 kB / 329.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/0.005389, allocations: 20.84 kB / 329.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.005993, allocations: 149.6 kB / 329.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.006007, allocations: 8.375 kB / 329.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.00604, allocations: 12.38 kB / 329.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004136/0.006453, allocations: 231.1 kB / 329.7 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.006468, allocations: 192 / 329.7 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.006484, allocations: 12.38 kB / 329.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.006493, allocations: 7.938 kB / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.006646, allocations: 79.88 kB / 329.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005553/0.007201, allocations: 0.4888 MB / 330.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.007484, allocations: 139.9 kB / 330.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.33e-05/0.007577, allocations: 66.62 kB / 330.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.007606, allocations: 7.938 kB / 330.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.007631, allocations: 42.5 kB / 330.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 3.076e-06/0.007634, allocations: 0 / 330.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003541/0.007988, allocations: 177.7 kB / 330.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/0.008062, allocations: 118.8 kB / 330.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.698e-05/0.008159, allocations: 141.1 kB / 331 MB, free: 9.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.008175, allocations: 29.7 kB / 331 MB, free: 9.938 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.008236, allocations: 120 kB / 331.1 MB, free: 9.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.008254, allocations: 27.78 kB / 331.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.008294, allocations: 29.7 kB / 331.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.008382, allocations: 322.8 kB / 331.5 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.051e-05/0.008443, allocations: 28.11 kB / 331.5 MB, free: 9.402 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.563e-05/0.008518, allocations: 91.64 kB / 331.6 MB, free: 9.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.00866, allocations: 114.8 kB / 331.7 MB, free: 9.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.008663, allocations: 0 / 331.7 MB, free: 9.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001674/0.00883, allocations: 137.6 kB / 331.8 MB, free: 9.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.008847, allocations: 8 kB / 331.8 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.008853, allocations: 0 / 331.8 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.008868, allocations: 8.203 kB / 331.9 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/0.008946, allocations: 31.92 kB / 331.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.008952, allocations: 4 kB / 331.9 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.463e-05/0.008996, allocations: 19.88 kB / 331.9 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.009003, allocations: 4 kB / 331.9 MB, free: 8.934 MB / 298.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.96e-05/0.009083, allocations: 121.8 kB / 332 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.982e-05/0.009183, allocations: 89.53 kB / 332.1 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.853e-05/0.009221, allocations: 20.78 kB / 332.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.009224, allocations: 0 / 332.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.00923, allocations: 8 kB / 332.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.009235, allocations: 3.984 kB / 332.1 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.009387, allocations: 137.2 kB / 332.3 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.00939, allocations: 4 kB / 332.3 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.009509, allocations: 43.91 kB / 332.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.009513, allocations: 0 / 332.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.009524, allocations: 7.938 kB / 332.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.009527, allocations: 3.984 kB / 332.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.009529, allocations: 0 / 332.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.009882, allocations: 387.4 kB / 332.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.009901, allocations: 19.92 kB / 332.7 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.009918, allocations: 3.984 kB / 332.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.663e-05/0.009985, allocations: 8 kB / 332.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.01003, allocations: 7.984 kB / 332.8 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.01003, allocations: 4 kB / 332.8 MB, free: 8.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.597e-05/0.01009, allocations: 102.7 kB / 332.9 MB, free: 7.922 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01009, allocations: 4 kB / 332.9 MB, free: 7.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002/0.01029, allocations: 31.83 kB / 332.9 MB, free: 7.887 MB / 298.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 0.0001085/0.0104, allocations: 111.3 kB / 333 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002026/0.0106, allocations: 91.81 kB / 333.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.0106, allocations: 0 / 333.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.839e-05/0.01065, allocations: 27.92 kB / 333.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.01104, allocations: 65.3 kB / 333.2 MB, free: 7.586 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006091/0.01164, allocations: 381.1 kB / 333.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.781e-05/0.01171, allocations: 102.3 kB / 333.7 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.01175, allocations: 12.5 kB / 333.7 MB, free: 7.043 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01175, allocations: 0 / 333.7 MB, free: 7.043 MB / 298.7 MB Notification: Performance of Templates: time 0.002377/0.01412, allocations: 1.618 MB / 335.3 MB, free: 5.434 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.0735289212316275]