Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001739/0.001739, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001875/0.001875, allocations: 203.5 kB / 23.73 MB, free: 4.379 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.ClockedWithDiscretizedContinuousController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 51.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2621, allocations: 53.37 MB / 431.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003646/0.2658, allocations: 2.035 MB / 433.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.2668, allocations: 0.5103 MB / 434.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.267, allocations: 7.938 kB / 434.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.2671, allocations: 15.8 kB / 434.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.865e-05/0.2672, allocations: 27.78 kB / 434.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.2674, allocations: 55.88 kB / 434.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.2677, allocations: 135.4 kB / 434.3 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.2678, allocations: 36.53 kB / 434.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.588e-05/0.2679, allocations: 59.83 kB / 434.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.986e-05/0.268, allocations: 51.72 kB / 434.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.963e-05/0.268, allocations: 12 kB / 434.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.89e-05/0.2681, allocations: 8 kB / 434.5 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.457e-05/0.2681, allocations: 31.86 kB / 434.5 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.753e-05/0.2682, allocations: 55.72 kB / 434.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.2684, allocations: 127.1 kB / 434.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.2684, allocations: 7.938 kB / 434.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2684, allocations: 0 / 434.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.2684, allocations: 0 / 434.7 MB, free: 3.516 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.0006037/0.269, allocations: 361.7 kB / 435.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.269, allocations: 8.031 kB / 435.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.2691, allocations: 20.84 kB / 435.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.2693, allocations: 154.3 kB / 435.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.2694, allocations: 8.375 kB / 435.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.2694, allocations: 16.33 kB / 435.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004996/0.2699, allocations: 235.7 kB / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.2699, allocations: 0 / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.2699, allocations: 8 kB / 435.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.2699, allocations: 0 / 435.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.2702, allocations: 91.81 kB / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000639/0.2708, allocations: 0.4886 MB / 436.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003426/0.2712, allocations: 135.9 kB / 436.2 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2713, allocations: 70.62 kB / 436.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.2714, allocations: 4 kB / 436.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.2714, allocations: 38.5 kB / 436.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.2714, allocations: 0 / 436.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005278/0.2719, allocations: 185.4 kB / 436.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/0.272, allocations: 114.8 kB / 436.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.2721, allocations: 140.7 kB / 436.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.2721, allocations: 26.08 kB / 436.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.692e-05/0.2722, allocations: 128 kB / 436.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.2723, allocations: 31.84 kB / 436.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.2723, allocations: 37.72 kB / 437 MB, free: 1.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2724, allocations: 322.8 kB / 437.3 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2726, allocations: 39.97 kB / 437.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.2727, allocations: 137.6 kB / 437.5 MB, free: 492 kB / 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.0004044/0.2732, allocations: 203.2 kB / 437.7 MB, free: 240 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2732, allocations: 0 / 437.7 MB, free: 240 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003801/0.2735, allocations: 201.5 kB / 437.9 MB, free: 32 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2736, allocations: 12.03 kB / 437.9 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2736, allocations: 4 kB / 437.9 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2736, allocations: 4 kB / 437.9 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.2737, allocations: 47.91 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.2738, allocations: 4 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.2739, allocations: 23.88 kB / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.2739, allocations: 8 kB / 438 MB, free: 15.93 MB / 350.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.0001265/0.274, allocations: 136.2 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.2742, allocations: 93.52 kB / 438.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.821e-05/0.2742, allocations: 20.7 kB / 438.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2742, allocations: 4 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.2742, allocations: 0 / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2742, allocations: 0 / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.2745, allocations: 141.2 kB / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2745, allocations: 0 / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.2747, allocations: 43.95 kB / 438.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.2747, allocations: 7.938 kB / 438.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.2747, allocations: 8 kB / 438.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2747, allocations: 4 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2747, allocations: 3.938 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.2753, allocations: 379.5 kB / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.343e-05/0.2753, allocations: 15.89 kB / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.2754, allocations: 0 / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.2755, allocations: 11.98 kB / 438.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.2756, allocations: 4 kB / 438.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.2756, allocations: 4 kB / 438.8 MB, free: 15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.803e-05/0.2756, allocations: 114.1 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2756, allocations: 96 / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.276, allocations: 35.83 kB / 439 MB, free: 14.86 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.0001191/0.2761, allocations: 107.2 kB / 439.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.2764, allocations: 128.5 kB / 439.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2764, allocations: 0 / 439.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.2765, allocations: 23.98 kB / 439.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.2771, allocations: 60.34 kB / 439.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009211/0.278, allocations: 418.3 kB / 439.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.2781, allocations: 106.7 kB / 439.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.353e-05/0.2781, allocations: 9.078 kB / 439.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.2782, allocations: 15.44 kB / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2782, allocations: 4 kB / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Templates: time 0.004825/0.283, allocations: 1.59 MB / 441.4 MB, free: 12.43 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.404801156371832]