Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007826/0.0007826, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003103/0.003103, allocations: 160.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8198/0.8198, allocations: 177.1 MB / 205 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.896e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002424/0.002443, allocations: 1.995 MB / 327.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007964/0.00324, allocations: 0.5414 MB / 328.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.003342, allocations: 4 kB / 328.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.003452, allocations: 15.8 kB / 328.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.003588, allocations: 23.73 kB / 328.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.00383, allocations: 67.69 kB / 328.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.004005, allocations: 127.5 kB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.004151, allocations: 46.09 kB / 328.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.004252, allocations: 75.81 kB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.071e-05/0.004322, allocations: 43.88 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.004357, allocations: 8 kB / 328.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.49e-05/0.004372, allocations: 12 kB / 328.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.576e-05/0.004398, allocations: 27.84 kB / 328.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.278e-05/0.004441, allocations: 39.91 kB / 328.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.004606, allocations: 131.5 kB / 329 MB, free: 12.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.004608, allocations: 0 / 329 MB, free: 12.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.004609, allocations: 0 / 329 MB, free: 12.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.004614, allocations: 0 / 329 MB, free: 12.28 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004806/0.005094, allocations: 353.8 kB / 329.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.005132, allocations: 12.03 kB / 329.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.734e-05/0.00517, allocations: 16.84 kB / 329.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.005371, allocations: 137.6 kB / 329.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.005384, allocations: 8.375 kB / 329.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.005418, allocations: 24.33 kB / 329.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.005883, allocations: 243.1 kB / 329.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.005904, allocations: 8.125 kB / 329.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.005921, allocations: 4.375 kB / 329.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.00593, allocations: 7.938 kB / 329.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.00611, allocations: 95.75 kB / 329.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004703/0.006581, allocations: 496.6 kB / 330.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.006872, allocations: 144 kB / 330.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.568e-05/0.006968, allocations: 66.53 kB / 330.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.006991, allocations: 8 kB / 330.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.007012, allocations: 38.5 kB / 330.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.007013, allocations: 0 / 330.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003612/0.007374, allocations: 189.4 kB / 330.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.966e-05/0.007454, allocations: 110.8 kB / 330.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.859e-05/0.007543, allocations: 130.1 kB / 331 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.007558, allocations: 29.64 kB / 331 MB, free: 9.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.107e-05/0.007629, allocations: 112.1 kB / 331.1 MB, free: 9.871 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.007649, allocations: 23.8 kB / 331.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.007687, allocations: 29.7 kB / 331.2 MB, free: 9.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.983e-05/0.007777, allocations: 322.8 kB / 331.5 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.073e-05/0.007837, allocations: 27.97 kB / 331.5 MB, free: 9.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.322e-05/0.007911, allocations: 78.97 kB / 331.6 MB, free: 9.359 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.008045, allocations: 114.7 kB / 331.7 MB, free: 9.223 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.008048, allocations: 4 kB / 331.7 MB, free: 9.219 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001765/0.008224, allocations: 133.4 kB / 331.9 MB, free: 9.082 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.008239, allocations: 8 kB / 331.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.008244, allocations: 0 / 331.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.00826, allocations: 4 kB / 331.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.671e-05/0.008327, allocations: 24.2 kB / 331.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.008337, allocations: 15.92 kB / 331.9 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.326e-05/0.00838, allocations: 19.89 kB / 331.9 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.008387, allocations: 4 kB / 331.9 MB, free: 9.008 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.384e-05/0.008461, allocations: 121.8 kB / 332 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.812e-05/0.008559, allocations: 97.88 kB / 332.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.29e-05/0.008612, allocations: 16.78 kB / 332.2 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.008614, allocations: 0 / 332.2 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.008619, allocations: 0 / 332.2 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.008623, allocations: 4 kB / 332.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.008765, allocations: 145.2 kB / 332.3 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.008766, allocations: 0 / 332.3 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.363e-05/0.00886, allocations: 39.91 kB / 332.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.008862, allocations: 0 / 332.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.008871, allocations: 4 kB / 332.3 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.008872, allocations: 0 / 332.3 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.008874, allocations: 3.938 kB / 332.4 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.009191, allocations: 386.2 kB / 332.7 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.438e-05/0.009205, allocations: 19.98 kB / 332.7 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.00922, allocations: 7.938 kB / 332.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.673e-05/0.009287, allocations: 11.98 kB / 332.8 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.00932, allocations: 4 kB / 332.8 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.009327, allocations: 7.984 kB / 332.8 MB, free: 8.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.231e-05/0.009369, allocations: 99.27 kB / 332.9 MB, free: 8 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009369, allocations: 0 / 332.9 MB, free: 8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001885/0.009557, allocations: 27.94 kB / 332.9 MB, free: 7.973 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.09e-05/0.009628, allocations: 95.25 kB / 333 MB, free: 7.867 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.009799, allocations: 99.81 kB / 333.1 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.0098, allocations: 0 / 333.1 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.833e-05/0.009849, allocations: 27.92 kB / 333.1 MB, free: 7.742 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.01016, allocations: 51.98 kB / 333.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004745/0.01063, allocations: 361.8 kB / 333.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.58e-05/0.0107, allocations: 101.3 kB / 333.6 MB, free: 7.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.01073, allocations: 16.88 kB / 333.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.01073, allocations: 0 / 333.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of Templates: time 0.002097/0.01283, allocations: 1.524 MB / 335.2 MB, free: 5.648 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.300483262166381]