Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001349/0.001349, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.001469/0.001469, allocations: 186 kB / 24.46 MB, free: 3.863 MB / 14.72 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 1.385/1.385, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 39.94 kB / 371.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2431, allocations: 52.19 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003593/0.2466, allocations: 2.019 MB / 425.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009155/0.2476, allocations: 486.7 kB / 426.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.694e-05/0.2477, allocations: 4 kB / 426.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.2478, allocations: 15.8 kB / 426.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.101e-05/0.2479, allocations: 35.72 kB / 426.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.2481, allocations: 55.86 kB / 426.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.2483, allocations: 131.5 kB / 426.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.2485, allocations: 41.64 kB / 426.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.734e-05/0.2485, allocations: 55.78 kB / 426.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.386e-05/0.2486, allocations: 47.77 kB / 426.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.2486, allocations: 8 kB / 426.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.461e-05/0.2487, allocations: 12 kB / 426.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.023e-05/0.2487, allocations: 27.86 kB / 426.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.632e-05/0.2488, allocations: 43.8 kB / 426.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.249, allocations: 138.3 kB / 426.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.249, allocations: 4 kB / 426.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.249, allocations: 0 / 426.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.249, allocations: 0 / 426.9 MB, free: 11.36 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005913/0.2496, allocations: 365.7 kB / 427.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.2496, allocations: 8.031 kB / 427.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/0.2496, allocations: 16.84 kB / 427.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.2499, allocations: 146.3 kB / 427.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.2499, allocations: 12.38 kB / 427.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.25, allocations: 12.38 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.2505, allocations: 246.8 kB / 427.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.2505, allocations: 0 / 427.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.2505, allocations: 4 kB / 427.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.2505, allocations: 4 kB / 427.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.2507, allocations: 83.88 kB / 427.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006124/0.2513, allocations: 496.4 kB / 428.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.2517, allocations: 143.9 kB / 428.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.2518, allocations: 74.64 kB / 428.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.2519, allocations: 3.938 kB / 428.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.2519, allocations: 42.5 kB / 428.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.2519, allocations: 0 / 428.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005184/0.2524, allocations: 181.4 kB / 428.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/0.2525, allocations: 118.7 kB / 428.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.2526, allocations: 134.2 kB / 429 MB, free: 9.102 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.2527, allocations: 29.7 kB / 429 MB, free: 9.066 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.2527, allocations: 116.1 kB / 429.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.2528, allocations: 31.77 kB / 429.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-05/0.2528, allocations: 41.83 kB / 429.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.253, allocations: 322.8 kB / 429.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2531, allocations: 35.97 kB / 429.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.2533, allocations: 135.5 kB / 429.7 MB, free: 8.332 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004227/0.2537, allocations: 205.6 kB / 429.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2537, allocations: 0 / 429.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000393/0.2541, allocations: 201.5 kB / 430 MB, free: 7.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.2541, allocations: 12.09 kB / 430.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2541, allocations: 3.938 kB / 430.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.2541, allocations: 8.234 kB / 430.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.2543, allocations: 35.98 kB / 430.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.2543, allocations: 15.92 kB / 430.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.2544, allocations: 23.89 kB / 430.1 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.2544, allocations: 8 kB / 430.2 MB, free: 7.773 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001289/0.2546, allocations: 137.8 kB / 430.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.2547, allocations: 97.52 kB / 430.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.207e-05/0.2548, allocations: 12.72 kB / 430.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2548, allocations: 4 kB / 430.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2548, allocations: 0 / 430.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2548, allocations: 7.984 kB / 430.4 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.255, allocations: 137.7 kB / 430.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.255, allocations: 0 / 430.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.2552, allocations: 39.97 kB / 430.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.2552, allocations: 7.938 kB / 430.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.2552, allocations: 4 kB / 430.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2553, allocations: 7.938 kB / 430.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2553, allocations: 4 kB / 430.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.2558, allocations: 382.9 kB / 431 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.823e-05/0.2558, allocations: 19.88 kB / 431 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.2559, allocations: 7.984 kB / 431 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.256, allocations: 8 kB / 431 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.256, allocations: 3.984 kB / 431 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.256, allocations: 4 kB / 431 MB, free: 6.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.754e-05/0.2561, allocations: 110.2 kB / 431.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2561, allocations: 0 / 431.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.2564, allocations: 28 kB / 431.2 MB, free: 6.707 MB / 334.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.0001086/0.2566, allocations: 111.1 kB / 431.3 MB, free: 6.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003434/0.2569, allocations: 120.7 kB / 431.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2569, allocations: 0 / 431.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.992e-05/0.257, allocations: 31.97 kB / 431.4 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.2575, allocations: 62.16 kB / 431.5 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008931/0.2584, allocations: 456.6 kB / 431.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.2585, allocations: 102.7 kB / 432 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.281e-05/0.2585, allocations: 15.44 kB / 432 MB, free: 5.77 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2585, allocations: 0 / 432 MB, free: 5.77 MB / 334.1 MB Notification: Performance of Templates: time 0.003659/0.2622, allocations: 1.683 MB / 433.7 MB, free: 4.094 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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: 7.009120555128902]