Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.0007638/0.0007638, allocations: 84 kB / 21.43 MB, free: 3.137 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.002914/0.002914, allocations: 142.4 kB / 24.68 MB, free: 8.895 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.8028/0.8028, allocations: 173.4 MB / 201.2 MB, free: 9.441 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 319.7 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.193e-05/2.337e-05, allocations: 2.281 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002258/0.002281, allocations: 1.992 MB / 321.7 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007006/0.002982, allocations: 0.5414 MB / 322.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.745e-05/0.003079, allocations: 11.88 kB / 322.2 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.003184, allocations: 15.8 kB / 322.2 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.003342, allocations: 39.64 kB / 322.3 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.003546, allocations: 63.81 kB / 322.3 MB, free: 3.203 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.003699, allocations: 131.4 kB / 322.4 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.003828, allocations: 54.02 kB / 322.5 MB, free: 3.016 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.37e-05/0.003912, allocations: 71.81 kB / 322.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.104e-05/0.003973, allocations: 43.83 kB / 322.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.003998, allocations: 12 kB / 322.6 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.388e-05/0.004012, allocations: 12 kB / 322.6 MB, free: 2.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.181e-05/0.004064, allocations: 35.89 kB / 322.7 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.004103, allocations: 43.84 kB / 322.7 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.004266, allocations: 143.5 kB / 322.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.004268, allocations: 0 / 322.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.004269, allocations: 4 kB / 322.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.004273, allocations: 0 / 322.9 MB, free: 2.656 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004475/0.00472, allocations: 373.6 kB / 323.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.004755, allocations: 16.92 kB / 323.2 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.004791, allocations: 20.84 kB / 323.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.004991, allocations: 163.2 kB / 323.4 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.005004, allocations: 12.38 kB / 323.4 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.005033, allocations: 20.33 kB / 323.5 MB, free: 2.012 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.005521, allocations: 250.7 kB / 323.7 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.005532, allocations: 192 / 323.7 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.005545, allocations: 8.375 kB / 323.7 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.005552, allocations: 3.938 kB / 323.7 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.0057, allocations: 83.88 kB / 323.8 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004164/0.006117, allocations: 0.4927 MB / 324.3 MB, free: 1.109 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.006351, allocations: 147.9 kB / 324.4 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.603e-05/0.006437, allocations: 70.58 kB / 324.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.006458, allocations: 4 kB / 324.5 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.006474, allocations: 34.55 kB / 324.5 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.006476, allocations: 4 kB / 324.5 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.000307/0.006783, allocations: 177.4 kB / 324.7 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.006836, allocations: 119.3 kB / 324.8 MB, free: 500 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.167e-05/0.006927, allocations: 158.9 kB / 325 MB, free: 332 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.006939, allocations: 29.7 kB / 325 MB, free: 296 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.006985, allocations: 112.6 kB / 325.1 MB, free: 180 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.007003, allocations: 31.72 kB / 325.2 MB, free: 148 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.007034, allocations: 25.72 kB / 325.2 MB, free: 116 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.007127, allocations: 330.7 kB / 325.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.298e-05/0.00718, allocations: 27.97 kB / 325.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.795e-05/0.007248, allocations: 74.84 kB / 325.6 MB, free: 15.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.00737, allocations: 122.9 kB / 325.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.007372, allocations: 0 / 325.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001602/0.007532, allocations: 137.4 kB / 325.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.007547, allocations: 8 kB / 325.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.007552, allocations: 0 / 325.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.007565, allocations: 4 kB / 325.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.537e-05/0.00763, allocations: 31.92 kB / 325.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.007635, allocations: 4 kB / 325.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.166e-05/0.007677, allocations: 24.09 kB / 325.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.007683, allocations: 4 kB / 325.9 MB, free: 15.3 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.151e-05/0.007755, allocations: 133.7 kB / 326.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.819e-05/0.007843, allocations: 89.59 kB / 326.1 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.432e-05/0.007897, allocations: 20.78 kB / 326.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.007901, allocations: 7.938 kB / 326.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.007905, allocations: 0 / 326.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.00791, allocations: 3.984 kB / 326.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.008048, allocations: 137.2 kB / 326.3 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.00805, allocations: 4 kB / 326.3 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.037e-05/0.008141, allocations: 39.97 kB / 326.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.008145, allocations: 4 kB / 326.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.008154, allocations: 4 kB / 326.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.008156, allocations: 4 kB / 326.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.008157, allocations: 0 / 326.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.008466, allocations: 383.3 kB / 326.7 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.084e-05/0.008507, allocations: 23.92 kB / 326.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.008524, allocations: 8 kB / 326.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.066e-05/0.008595, allocations: 12.05 kB / 326.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.008628, allocations: 8 kB / 326.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.008633, allocations: 4 kB / 326.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.329e-05/0.008697, allocations: 119.3 kB / 326.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008697, allocations: 3.938 kB / 326.9 MB, free: 14.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001875/0.008884, allocations: 27.88 kB / 326.9 MB, free: 14.21 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 7.882e-05/0.008963, allocations: 107.2 kB / 327.1 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001684/0.009131, allocations: 91.88 kB / 327.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.009133, allocations: 0 / 327.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.75e-05/0.00918, allocations: 27.92 kB / 327.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.009529, allocations: 75.03 kB / 327.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000497/0.01003, allocations: 398.7 kB / 327.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.608e-05/0.0101, allocations: 118.2 kB / 327.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.258e-05/0.01013, allocations: 16.5 kB / 327.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01014, allocations: 0 / 327.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of Templates: time 0.002226/0.01236, allocations: 1.611 MB / 329.4 MB, free: 11.73 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.100953687913716]