Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.000881/0.000881, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001201/0.002082, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007287/0.0007287, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009041/0.001633, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.032/1.032, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.104/1.136, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.999e-05/3.175e-05, allocations: 2.312 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004197/0.004229, allocations: 2.123 MB / 246.8 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.005293, allocations: 0.5295 MB / 247.3 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.005419, allocations: 7.938 kB / 247.3 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.005521, allocations: 15.8 kB / 247.4 MB, free: 11.56 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.141e-05/0.005602, allocations: 31.73 kB / 247.4 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.005891, allocations: 59.8 kB / 247.4 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.006111, allocations: 127.4 kB / 247.6 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.006288, allocations: 42.27 kB / 247.6 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.006453, allocations: 75.81 kB / 247.7 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.006554, allocations: 47.81 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.38e-05/0.006588, allocations: 8 kB / 247.7 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.264e-05/0.00661, allocations: 12 kB / 247.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.926e-05/0.00665, allocations: 19.94 kB / 247.8 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.808e-05/0.006698, allocations: 31.94 kB / 247.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.006903, allocations: 83.61 kB / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.123e-05/0.006914, allocations: 0 / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.006916, allocations: 0 / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.006927, allocations: 4 kB / 247.9 MB, free: 11.02 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005797/0.007506, allocations: 340.1 kB / 248.2 MB, free: 10.67 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.007551, allocations: 8.031 kB / 248.2 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.00761, allocations: 20.92 kB / 248.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.007834, allocations: 145.5 kB / 248.4 MB, free: 10.47 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.007851, allocations: 20.38 kB / 248.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.007887, allocations: 12.38 kB / 248.4 MB, free: 10.44 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.008229, allocations: 195.8 kB / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.008242, allocations: 192 / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.008256, allocations: 4.375 kB / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.008267, allocations: 7.938 kB / 248.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.144e-05/0.008349, allocations: 47.78 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.00889, allocations: 450 kB / 249.1 MB, free: 9.684 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.009049, allocations: 99.69 kB / 249.2 MB, free: 9.559 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.831e-05/0.009107, allocations: 46.58 kB / 249.3 MB, free: 9.504 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.009133, allocations: 8 kB / 249.3 MB, free: 9.496 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.009165, allocations: 30.56 kB / 249.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 2.054e-06/0.009167, allocations: 0 / 249.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002407/0.009408, allocations: 97.53 kB / 249.4 MB, free: 9.355 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.009471, allocations: 110.8 kB / 249.5 MB, free: 9.223 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.009581, allocations: 134.5 kB / 249.6 MB, free: 9.082 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.009597, allocations: 25.7 kB / 249.7 MB, free: 9.051 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.009741, allocations: 119.8 kB / 249.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.009779, allocations: 23.78 kB / 249.8 MB, free: 8.906 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.009827, allocations: 25.7 kB / 249.8 MB, free: 8.875 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.009926, allocations: 326.8 kB / 250.1 MB, free: 8.547 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.184e-05/0.009958, allocations: 8 kB / 250.1 MB, free: 8.539 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-05/0.01002, allocations: 58.8 kB / 250.2 MB, free: 8.457 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.01012, allocations: 78.89 kB / 250.3 MB, free: 8.355 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.01012, allocations: 0 / 250.3 MB, free: 8.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001355/0.01026, allocations: 85.67 kB / 250.4 MB, free: 8.266 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.01028, allocations: 14.36 kB / 250.4 MB, free: 8.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.01029, allocations: 4 kB / 250.4 MB, free: 8.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.01031, allocations: 0 / 250.4 MB, free: 8.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.01052, allocations: 31.92 kB / 250.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.01052, allocations: 4 kB / 250.4 MB, free: 8.215 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.077e-05/0.01057, allocations: 20.06 kB / 250.4 MB, free: 8.195 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.01058, allocations: 4 kB / 250.4 MB, free: 8.191 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 9.231e-05/0.01067, allocations: 117.8 kB / 250.6 MB, free: 8.066 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.686e-05/0.01076, allocations: 65.61 kB / 250.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.03e-05/0.0108, allocations: 20.77 kB / 250.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.01081, allocations: 0 / 250.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.01081, allocations: 7.984 kB / 250.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.01082, allocations: 3.938 kB / 250.7 MB, free: 7.965 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.01096, allocations: 93.8 kB / 250.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.01096, allocations: 0 / 250.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.01107, allocations: 35.97 kB / 250.8 MB, free: 7.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.653e-05/0.01108, allocations: 15.84 kB / 250.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.01109, allocations: 0 / 250.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.0111, allocations: 8 kB / 250.8 MB, free: 7.797 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.0111, allocations: 4 kB / 250.8 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.01111, allocations: 0 / 250.8 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001453/0.01125, allocations: 243.5 kB / 251 MB, free: 7.535 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.01126, allocations: 4 kB / 251 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.01139, allocations: 7.984 kB / 251.1 MB, free: 7.523 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.583e-05/0.01141, allocations: 4 kB / 251.1 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.01142, allocations: 4 kB / 251.1 MB, free: 7.516 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.245e-05/0.01144, allocations: 24.83 kB / 251.1 MB, free: 7.488 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01144, allocations: 0 / 251.1 MB, free: 7.488 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001612/0.0116, allocations: 20 kB / 251.1 MB, free: 7.469 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 (14): * Single equations (assignments): 14 * 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 8.807e-05/0.01169, allocations: 100.3 kB / 251.2 MB, free: 7.363 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.731e-05/0.01179, allocations: 56.47 kB / 251.3 MB, free: 7.309 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.01179, allocations: 0 / 251.3 MB, free: 7.309 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.793e-05/0.01182, allocations: 20.84 kB / 251.3 MB, free: 7.285 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.01215, allocations: 184.1 kB / 251.5 MB, free: 7.074 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.0135, allocations: 308.2 kB / 251.8 MB, free: 6.742 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.616e-05/0.01355, allocations: 71.33 kB / 251.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.647e-05/0.01359, allocations: 4.984 kB / 251.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.421e-05/0.01367, allocations: 75.36 kB / 251.9 MB, free: 6.57 MB / 250.7 MB Notification: Performance of SimCode: time 1.253e-06/0.01367, allocations: 0 / 251.9 MB, free: 6.57 MB / 250.7 MB Notification: Performance of Templates: time 0.003103/0.01678, allocations: 1.242 MB / 253.2 MB, free: 5.387 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7714610816910863]