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.001904/0.001904, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002309/0.002309, allocations: 215.3 kB / 23.73 MB, free: 4.156 MB / 14.72 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.457/1.457, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 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.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 0.001585/0.001585, allocations: 47.94 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2428, allocations: 53.37 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003776/0.2465, allocations: 1.981 MB / 433.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2476, allocations: 0.5337 MB / 434.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.2477, allocations: 3.938 kB / 434.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.2478, allocations: 23.73 kB / 434.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.248, allocations: 39.7 kB / 434.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.2482, allocations: 47.88 kB / 434.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.2484, allocations: 119.6 kB / 434.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.2486, allocations: 41.56 kB / 434.3 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.51e-05/0.2487, allocations: 55.84 kB / 434.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.372e-05/0.2488, allocations: 51.7 kB / 434.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/0.2488, allocations: 8 kB / 434.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.2488, allocations: 12 kB / 434.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.948e-05/0.2489, allocations: 23.92 kB / 434.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.991e-05/0.249, allocations: 51.72 kB / 434.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.2492, allocations: 129.6 kB / 434.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2492, allocations: 0 / 434.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2492, allocations: 0 / 434.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2492, allocations: 0 / 434.7 MB, free: 3.617 MB / 334.1 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.0006826/0.2499, allocations: 365.8 kB / 435 MB, free: 3.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2499, allocations: 12.03 kB / 435 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.483e-05/0.2499, allocations: 16.84 kB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.2502, allocations: 154.2 kB / 435.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2502, allocations: 8.375 kB / 435.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.603e-05/0.2503, allocations: 16.38 kB / 435.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005187/0.2508, allocations: 246.9 kB / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.2508, allocations: 0 / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.2508, allocations: 4 kB / 435.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2508, allocations: 4 kB / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/0.2511, allocations: 87.88 kB / 435.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006092/0.2517, allocations: 492.3 kB / 436 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.2521, allocations: 147.9 kB / 436.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.2522, allocations: 66.64 kB / 436.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.2522, allocations: 11.92 kB / 436.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.2523, allocations: 34.56 kB / 436.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.2523, allocations: 3.938 kB / 436.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005285/0.2528, allocations: 189.5 kB / 436.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.909e-05/0.2529, allocations: 114.7 kB / 436.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.253, allocations: 136 kB / 436.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.253, allocations: 25.7 kB / 436.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2531, allocations: 123.9 kB / 436.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/0.2531, allocations: 23.84 kB / 436.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.2532, allocations: 29.72 kB / 436.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2533, allocations: 322.8 kB / 437.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.2534, allocations: 35.97 kB / 437.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.2536, allocations: 137.7 kB / 437.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.2539, allocations: 189.5 kB / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2539, allocations: 0 / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003763/0.2543, allocations: 201.2 kB / 437.8 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2543, allocations: 7.984 kB / 437.8 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.2543, allocations: 4 kB / 437.8 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.2544, allocations: 8 kB / 437.8 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.2545, allocations: 39.92 kB / 437.9 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.2545, allocations: 12.39 kB / 437.9 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.2546, allocations: 31.89 kB / 437.9 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.2546, allocations: 8 kB / 437.9 MB, free: 36 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001364/0.2548, allocations: 129.7 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.2549, allocations: 85.58 kB / 438.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.24e-05/0.255, allocations: 20.7 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.255, allocations: 4 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.255, allocations: 0 / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.255, allocations: 0 / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.2552, allocations: 133.2 kB / 438.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2552, allocations: 7.938 kB / 438.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.2554, allocations: 36.44 kB / 438.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.2554, allocations: 7.938 kB / 438.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.2554, allocations: 4 kB / 438.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2554, allocations: 0 / 438.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2554, allocations: 4 kB / 438.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005539/0.256, allocations: 387.3 kB / 438.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.346e-05/0.256, allocations: 19.81 kB / 438.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.17e-05/0.256, allocations: 4.062 kB / 438.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.2562, allocations: 15.98 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.2562, allocations: 0 / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.2562, allocations: 7.984 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.427e-05/0.2563, allocations: 102.4 kB / 438.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2563, allocations: 0 / 438.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.2566, allocations: 24 kB / 438.9 MB, free: 15 MB / 350.1 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 0.0001124/0.2567, allocations: 107.2 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.2571, allocations: 115.8 kB / 439.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2571, allocations: 3.938 kB / 439.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.41e-05/0.2572, allocations: 27.97 kB / 439.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.2576, allocations: 53.36 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007021/0.2583, allocations: 410.1 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001003/0.2584, allocations: 101.5 kB / 439.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.155e-05/0.2585, allocations: 9.094 kB / 439.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.693e-05/0.2585, allocations: 19.42 kB / 439.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2585, allocations: 0 / 439.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of Templates: time 0.004301/0.2628, allocations: 1.382 MB / 441.1 MB, free: 12.76 MB / 350.1 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.477601498365402]