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.00235/0.00235, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002793/0.002793, allocations: 169.3 kB / 24.27 MB, free: 156 kB / 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 1.711/1.711, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.724e-06/1.724e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.873e-05/3.046e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004031/0.004062, allocations: 2.03 MB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.005671, allocations: 0.5103 MB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.005845, allocations: 4 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.006018, allocations: 15.8 kB / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.006129, allocations: 27.72 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.006498, allocations: 63.75 kB / 274.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.006703, allocations: 119.6 kB / 275.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.006877, allocations: 45.58 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.007022, allocations: 71.81 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.705e-05/0.00712, allocations: 39.88 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.007152, allocations: 8 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.335e-05/0.007176, allocations: 12 kB / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.966e-05/0.007215, allocations: 27.91 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.026e-05/0.007285, allocations: 39.86 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.00755, allocations: 127.5 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.007553, allocations: 0 / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.007554, allocations: 4 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.007561, allocations: 0 / 275.4 MB, free: 14.71 MB / 266.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.0007529/0.008314, allocations: 455.8 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.008356, allocations: 8.031 kB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.305e-05/0.008429, allocations: 28.78 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.008691, allocations: 152.4 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.008708, allocations: 8.375 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.008753, allocations: 16.33 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.009295, allocations: 256.1 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.009311, allocations: 192 / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.00933, allocations: 4.375 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.009341, allocations: 7.938 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.009558, allocations: 71.89 kB / 276.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008174/0.01038, allocations: 0.6485 MB / 277.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.0107, allocations: 165.4 kB / 277.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.01084, allocations: 71.14 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.01088, allocations: 7.984 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/0.01091, allocations: 41.33 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.153e-06/0.01092, allocations: 0 / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004672/0.01138, allocations: 161.5 kB / 277.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.01148, allocations: 110.9 kB / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.01166, allocations: 197.9 kB / 277.8 MB, free: 12.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.01168, allocations: 29.7 kB / 277.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.0118, allocations: 162.8 kB / 278 MB, free: 11.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.01184, allocations: 31.77 kB / 278 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.703e-05/0.01189, allocations: 31.38 kB / 278 MB, free: 11.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002633/0.01216, allocations: 0.5 MB / 278.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.636e-05/0.01223, allocations: 19.98 kB / 278.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.01238, allocations: 105.3 kB / 278.7 MB, free: 11.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.0126, allocations: 129.4 kB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.0126, allocations: 0 / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002549/0.01286, allocations: 129.6 kB / 278.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.01288, allocations: 4 kB / 278.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.01289, allocations: 4 kB / 278.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.0129, allocations: 4 kB / 278.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.01304, allocations: 31.92 kB / 279 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.01305, allocations: 3.984 kB / 279 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.139e-05/0.01312, allocations: 19.83 kB / 279 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.01313, allocations: 8 kB / 279 MB, free: 10.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 0.0001466/0.01328, allocations: 168.5 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.01343, allocations: 89.67 kB / 279.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.671e-05/0.01349, allocations: 16.78 kB / 279.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01349, allocations: 0 / 279.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.0135, allocations: 4 kB / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.01351, allocations: 3.984 kB / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.01376, allocations: 152.5 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.01376, allocations: 3.938 kB / 279.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.01392, allocations: 31.98 kB / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.01392, allocations: 4 kB / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.01393, allocations: 0 / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.01394, allocations: 4 kB / 279.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.01394, allocations: 4 kB / 279.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/0.01454, allocations: 466.5 kB / 279.9 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.968e-05/0.01457, allocations: 19.84 kB / 279.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.01459, allocations: 0 / 279.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.01471, allocations: 8 kB / 280 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.01476, allocations: 7.984 kB / 280 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.01477, allocations: 4 kB / 280 MB, free: 9.734 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.01487, allocations: 146.7 kB / 280.1 MB, free: 9.594 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01487, allocations: 0 / 280.1 MB, free: 9.594 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002769/0.01515, allocations: 31.97 kB / 280.1 MB, free: 9.562 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 (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 0.0001274/0.01528, allocations: 103.4 kB / 280.2 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002792/0.01556, allocations: 91.58 kB / 280.3 MB, free: 9.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01556, allocations: 0 / 280.3 MB, free: 9.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.548e-05/0.01564, allocations: 39.62 kB / 280.4 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.01612, allocations: 47.98 kB / 280.4 MB, free: 9.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007323/0.01685, allocations: 358.5 kB / 280.8 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.01697, allocations: 101.2 kB / 280.9 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.366e-05/0.01701, allocations: 0.5 kB / 280.9 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.01705, allocations: 16.5 kB / 280.9 MB, free: 8.746 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01705, allocations: 4 kB / 280.9 MB, free: 8.742 MB / 266.7 MB Notification: Performance of Templates: time 0.004722/0.02177, allocations: 1.193 MB / 282.1 MB, free: 7.602 MB / 266.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.638350335066207]