Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001399/0.001399, allocations: 115 kB / 21.17 MB, free: 0.7812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 219.6 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.472/1.472, allocations: 230.4 MB / 258.1 MB, free: 8.156 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 71.83 kB / 378.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3657, allocations: 53.31 MB / 432 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003687/0.3693, allocations: 2.098 MB / 434.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.3704, allocations: 0.5376 MB / 434.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.3705, allocations: 7.938 kB / 434.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.3706, allocations: 15.8 kB / 434.7 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.428e-05/0.3707, allocations: 35.7 kB / 434.7 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.371, allocations: 55.88 kB / 434.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.3712, allocations: 123.6 kB / 434.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.3713, allocations: 37.81 kB / 434.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.341e-05/0.3714, allocations: 55.77 kB / 435 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.114e-05/0.3715, allocations: 55.72 kB / 435 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.3715, allocations: 12 kB / 435.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.891e-05/0.3716, allocations: 12 kB / 435.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.083e-05/0.3716, allocations: 27.86 kB / 435.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.583e-05/0.3717, allocations: 67.59 kB / 435.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.3719, allocations: 129 kB / 435.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3719, allocations: 0 / 435.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3719, allocations: 0 / 435.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.3719, allocations: 0 / 435.3 MB, free: 4.152 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.0006525/0.3726, allocations: 438.8 kB / 435.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.3726, allocations: 8.031 kB / 435.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.859e-05/0.3726, allocations: 20.83 kB / 435.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.373, allocations: 204.2 kB / 435.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.373, allocations: 12.31 kB / 436 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.373, allocations: 12.38 kB / 436 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.3735, allocations: 247.3 kB / 436.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3735, allocations: 0 / 436.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3735, allocations: 4 kB / 436.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3735, allocations: 4 kB / 436.2 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002599/0.3738, allocations: 87.86 kB / 436.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007217/0.3745, allocations: 0.596 MB / 436.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/0.3749, allocations: 143.9 kB / 437 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.375, allocations: 70.64 kB / 437.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.3751, allocations: 7.922 kB / 437.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.3751, allocations: 42.56 kB / 437.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.3751, allocations: 0 / 437.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005109/0.3756, allocations: 177.3 kB / 437.3 MB, free: 1.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.649e-05/0.3757, allocations: 110.8 kB / 437.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.3758, allocations: 141.5 kB / 437.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.3759, allocations: 30.08 kB / 437.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.464e-05/0.3759, allocations: 120 kB / 437.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.376, allocations: 27.78 kB / 437.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.585e-05/0.376, allocations: 37.7 kB / 437.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3762, allocations: 322.8 kB / 438.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3763, allocations: 39.97 kB / 438.1 MB, free: 1.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.3765, allocations: 141.6 kB / 438.3 MB, free: 0.8203 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.0004557/0.3769, allocations: 278.7 kB / 438.5 MB, free: 492 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3769, allocations: 4 kB / 438.6 MB, free: 488 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003813/0.3773, allocations: 205.3 kB / 438.8 MB, free: 276 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.3773, allocations: 7.938 kB / 438.8 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3773, allocations: 4 kB / 438.8 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3773, allocations: 4 kB / 438.8 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.3775, allocations: 47.91 kB / 438.8 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.3775, allocations: 7.984 kB / 438.8 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.3776, allocations: 19.94 kB / 438.8 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.3776, allocations: 12.28 kB / 438.9 MB, free: 172 kB / 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.0001295/0.3778, allocations: 144.6 kB / 439 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.3779, allocations: 85.66 kB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.378, allocations: 20.7 kB / 439.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.378, allocations: 4.234 kB / 439.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.378, allocations: 0 / 439.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.378, allocations: 0 / 439.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.3783, allocations: 221.3 kB / 439.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3783, allocations: 4 kB / 439.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002101/0.3785, allocations: 43.97 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3785, allocations: 3.938 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.3785, allocations: 7.984 kB / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3785, allocations: 0 / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3785, allocations: 0 / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.3791, allocations: 379.5 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.413e-05/0.3791, allocations: 93.02 kB / 439.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.3792, allocations: 8 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.3793, allocations: 4 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.3794, allocations: 11.92 kB / 439.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.3794, allocations: 4 kB / 439.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.544e-05/0.3794, allocations: 103.3 kB / 440 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3794, allocations: 4.156 kB / 440 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.3798, allocations: 31.89 kB / 440 MB, free: 14.91 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.0001193/0.3799, allocations: 107.2 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003522/0.3802, allocations: 120.5 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3802, allocations: 4.188 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.3803, allocations: 31.91 kB / 440.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.3808, allocations: 54.59 kB / 440.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008893/0.3817, allocations: 447.3 kB / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.3821, allocations: 0.724 MB / 441.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.2e-05/0.3821, allocations: 15.44 kB / 441.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3821, allocations: 0 / 441.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Templates: time 0.003455/0.3856, allocations: 1.647 MB / 443.1 MB, free: 11.73 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.3111064536497]