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.0009449/0.0009449, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009711/0.0009711, allocations: 147.1 kB / 24.89 MB, free: 8.727 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.9088/0.9088, allocations: 173.4 MB / 201.5 MB, free: 8.742 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.452e-06/1.452e-06, allocations: 0 / 268.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.129e-05/2.274e-05, allocations: 10.25 kB / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002386/0.002408, allocations: 2.1 MB / 270.6 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007188/0.003127, allocations: 0.5724 MB / 271.2 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.638e-05/0.003224, allocations: 7.938 kB / 271.2 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.003326, allocations: 15.8 kB / 271.2 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.003477, allocations: 43.64 kB / 271.2 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.003666, allocations: 63.75 kB / 271.3 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.0038, allocations: 135.5 kB / 271.4 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.684e-05/0.003897, allocations: 38.75 kB / 271.5 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.336e-05/0.00399, allocations: 83.73 kB / 271.6 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.345e-05/0.004054, allocations: 35.89 kB / 271.6 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.004075, allocations: 12 kB / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.635e-05/0.004091, allocations: 16 kB / 271.6 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.004133, allocations: 31.84 kB / 271.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.004168, allocations: 43.91 kB / 271.7 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.004302, allocations: 103.6 kB / 271.8 MB, free: 2.676 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.472e-06/0.004304, allocations: 0 / 271.8 MB, free: 2.676 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.72e-07/0.004304, allocations: 0 / 271.8 MB, free: 2.676 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.004308, allocations: 0 / 271.8 MB, free: 2.676 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.0003557/0.004664, allocations: 352.2 kB / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.004695, allocations: 12.92 kB / 272.1 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/0.004731, allocations: 28.91 kB / 272.2 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.004912, allocations: 161.5 kB / 272.3 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.004928, allocations: 8.375 kB / 272.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.004956, allocations: 12.38 kB / 272.4 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.005234, allocations: 223.7 kB / 272.6 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.005243, allocations: 4.188 kB / 272.6 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.005253, allocations: 4.375 kB / 272.6 MB, free: 1.812 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.00526, allocations: 7.938 kB / 272.6 MB, free: 1.805 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.178e-05/0.005312, allocations: 39.23 kB / 272.6 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003159/0.005628, allocations: 446 kB / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.005769, allocations: 107.9 kB / 273.2 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.681e-05/0.005806, allocations: 42.64 kB / 273.2 MB, free: 1.113 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.005821, allocations: 8 kB / 273.2 MB, free: 1.105 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.00584, allocations: 42.56 kB / 273.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.133e-06/0.005841, allocations: 0 / 273.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001489/0.00599, allocations: 101.8 kB / 273.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.006035, allocations: 118.8 kB / 273.5 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.01e-05/0.006105, allocations: 142.6 kB / 273.6 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.006116, allocations: 29.7 kB / 273.6 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.006154, allocations: 116.5 kB / 273.8 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.241e-05/0.006167, allocations: 19.8 kB / 273.8 MB, free: 496 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.006197, allocations: 29.69 kB / 273.8 MB, free: 460 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.216e-05/0.006269, allocations: 322.8 kB / 274.1 MB, free: 128 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.792e-05/0.006287, allocations: 23.98 kB / 274.1 MB, free: 104 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.11e-05/0.006318, allocations: 54.86 kB / 274.2 MB, free: 24 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.38e-05/0.006382, allocations: 78.72 kB / 274.3 MB, free: 15.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006383, allocations: 0 / 274.3 MB, free: 15.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.932e-05/0.006463, allocations: 85.53 kB / 274.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.006473, allocations: 11.94 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.006477, allocations: 0 / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.00649, allocations: 4 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.642e-05/0.006576, allocations: 27.98 kB / 274.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-06/0.006579, allocations: 0 / 274.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/0.006614, allocations: 15.89 kB / 274.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.006619, allocations: 4 kB / 274.4 MB, free: 15.77 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 5.902e-05/0.006678, allocations: 136.7 kB / 274.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.00674, allocations: 61.86 kB / 274.6 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.534e-05/0.006775, allocations: 20.77 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.00678, allocations: 7.984 kB / 274.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.006781, allocations: 0 / 274.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.006784, allocations: 0 / 274.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.006896, allocations: 97.8 kB / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.006897, allocations: 0 / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.673e-05/0.006984, allocations: 35.97 kB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.006985, allocations: 0 / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.006997, allocations: 12 kB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.006998, allocations: 0 / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.006999, allocations: 0 / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.007112, allocations: 243.5 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.262e-05/0.007145, allocations: 27.83 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.007158, allocations: 4 kB / 275.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.543e-05/0.007223, allocations: 4 kB / 275.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.291e-05/0.007246, allocations: 3.984 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.007252, allocations: 16 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.476e-05/0.007276, allocations: 34.3 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007276, allocations: 8.031 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001529/0.007429, allocations: 23.95 kB / 275.1 MB, free: 14.99 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.195e-05/0.007491, allocations: 92.28 kB / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.347e-05/0.007575, allocations: 52.72 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.007578, allocations: 4 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.708e-05/0.007595, allocations: 20.84 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.007842, allocations: 59.47 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004949/0.008337, allocations: 347 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.244e-05/0.008379, allocations: 71.33 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.678e-05/0.008406, allocations: 8.641 kB / 275.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.008465, allocations: 71.36 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.008465, allocations: 4 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of Templates: time 0.002918/0.01138, allocations: 1.463 MB / 277.3 MB, free: 12.81 MB / 266.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 -s gbode -gbm=radauIIA3 -emit_protected -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.5819613188505173]