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.0009913/0.0009913, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001371/0.002362, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009183/0.0009183, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001024/0.001943, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9101/0.9101, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09048/1.001, allocations: 52.49 MB / 238.3 MB, free: 4.438 MB / 234.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.483e-06/1.483e-06, allocations: 0 / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.024e-05/1.172e-05, allocations: 5.125 kB / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002131/0.002142, allocations: 2.112 MB / 241.6 MB, free: 1.07 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006121/0.002755, allocations: 0.5724 MB / 242.2 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.76e-05/0.002842, allocations: 7.938 kB / 242.2 MB, free: 496 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.142e-05/0.002904, allocations: 19.73 kB / 242.2 MB, free: 476 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.468e-05/0.002998, allocations: 31.72 kB / 242.3 MB, free: 444 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.003182, allocations: 67.78 kB / 242.3 MB, free: 376 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.003322, allocations: 127.5 kB / 242.5 MB, free: 248 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.514e-05/0.003417, allocations: 42.7 kB / 242.5 MB, free: 200 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.003519, allocations: 83.73 kB / 242.6 MB, free: 116 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.464e-05/0.003584, allocations: 51.81 kB / 242.6 MB, free: 64 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.003609, allocations: 12 kB / 242.7 MB, free: 52 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.433e-05/0.003623, allocations: 8 kB / 242.7 MB, free: 44 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.361e-05/0.003667, allocations: 27.88 kB / 242.7 MB, free: 16 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.837e-05/0.003715, allocations: 35.92 kB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.003843, allocations: 87.62 kB / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.899e-06/0.003853, allocations: 0 / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.003854, allocations: 0 / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.003865, allocations: 3.984 kB / 242.8 MB, free: 15.89 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000415/0.00428, allocations: 391.8 kB / 243.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.642e-05/0.004307, allocations: 12.03 kB / 243.2 MB, free: 15.47 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.004343, allocations: 24.91 kB / 243.2 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.004493, allocations: 161.3 kB / 243.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.004503, allocations: 8.375 kB / 243.4 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.004526, allocations: 12.38 kB / 243.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.004765, allocations: 219.8 kB / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.004775, allocations: 4.141 kB / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.004785, allocations: 4.375 kB / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.00479, allocations: 7.938 kB / 243.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.127e-05/0.004842, allocations: 33.47 kB / 243.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.00518, allocations: 457.9 kB / 244.1 MB, free: 14.47 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.005332, allocations: 107.9 kB / 244.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.972e-05/0.005372, allocations: 54.59 kB / 244.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.005391, allocations: 4 kB / 244.3 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.00541, allocations: 34.56 kB / 244.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.005411, allocations: 0 / 244.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000154/0.005565, allocations: 101.5 kB / 244.4 MB, free: 14.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.005612, allocations: 110.8 kB / 244.5 MB, free: 13.99 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.438e-05/0.005687, allocations: 154.5 kB / 244.7 MB, free: 13.83 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.005698, allocations: 29.7 kB / 244.7 MB, free: 13.79 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.02e-05/0.005738, allocations: 108.6 kB / 244.8 MB, free: 13.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.005754, allocations: 23.78 kB / 244.8 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.024e-05/0.005785, allocations: 41.72 kB / 244.9 MB, free: 13.61 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.743e-05/0.005852, allocations: 318.8 kB / 245.2 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.005866, allocations: 11.98 kB / 245.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.245e-05/0.005899, allocations: 54.86 kB / 245.3 MB, free: 13.2 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.837e-05/0.005957, allocations: 82.7 kB / 245.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.005959, allocations: 4 kB / 245.3 MB, free: 13.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.602e-05/0.006035, allocations: 85.47 kB / 245.4 MB, free: 13 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.006045, allocations: 8 kB / 245.4 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.006049, allocations: 0 / 245.4 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.006059, allocations: 4.234 kB / 245.4 MB, free: 12.99 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.006165, allocations: 27.98 kB / 245.5 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.00617, allocations: 4 kB / 245.5 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.41e-05/0.006204, allocations: 16.11 kB / 245.5 MB, free: 12.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.00621, allocations: 8 kB / 245.5 MB, free: 12.94 MB / 250.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 5.932e-05/0.006269, allocations: 124.6 kB / 245.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.297e-05/0.006332, allocations: 73.59 kB / 245.7 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.408e-05/0.006366, allocations: 16.78 kB / 245.7 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.006368, allocations: 0 / 245.7 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.006369, allocations: 0 / 245.7 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.006374, allocations: 4 kB / 245.7 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.006499, allocations: 101.7 kB / 245.8 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.006501, allocations: 0 / 245.8 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.914e-05/0.0066, allocations: 43.97 kB / 245.8 MB, free: 12.55 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.221e-05/0.006632, allocations: 19.91 kB / 245.9 MB, free: 12.53 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.006635, allocations: 4 kB / 245.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.006646, allocations: 3.984 kB / 245.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.006647, allocations: 0 / 245.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.006651, allocations: 7.938 kB / 245.9 MB, free: 12.51 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.006769, allocations: 231.6 kB / 246.1 MB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.006784, allocations: 11.94 kB / 246.1 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.965e-05/0.006844, allocations: 4 kB / 246.1 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.346e-05/0.006868, allocations: 8.016 kB / 246.1 MB, free: 12.24 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.006873, allocations: 8 kB / 246.1 MB, free: 12.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.645e-05/0.006899, allocations: 38.28 kB / 246.2 MB, free: 12.2 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006899, allocations: 4 kB / 246.2 MB, free: 12.19 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001583/0.007057, allocations: 27.89 kB / 246.2 MB, free: 12.16 MB / 250.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.476e-05/0.007122, allocations: 92.3 kB / 246.3 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.267e-05/0.007205, allocations: 52.7 kB / 246.3 MB, free: 12.01 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.007211, allocations: 4.438 kB / 246.3 MB, free: 12.01 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.79e-05/0.007229, allocations: 20.84 kB / 246.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.007494, allocations: 66.66 kB / 246.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.008758, allocations: 326.9 kB / 246.8 MB, free: 11.56 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.388e-05/0.008802, allocations: 83.33 kB / 246.8 MB, free: 11.46 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.008831, allocations: 8.641 kB / 246.8 MB, free: 11.45 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.008893, allocations: 71.36 kB / 246.9 MB, free: 11.38 MB / 250.7 MB Notification: Performance of SimCode: time 5.91e-07/0.008894, allocations: 0 / 246.9 MB, free: 11.38 MB / 250.7 MB Notification: Performance of Templates: time 0.002918/0.01181, allocations: 1.489 MB / 248.4 MB, free: 9.961 MB / 250.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",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.3714595809578896]