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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 108.7 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 207.9 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.466/1.466, allocations: 230.4 MB / 251.1 MB, free: 8.457 MB / 206.1 MB 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.002991/0.002991, allocations: 71.83 kB / 368.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3122, allocations: 53.3 MB / 422.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003658/0.3159, allocations: 2.077 MB / 424.3 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.3169, allocations: 0.5415 MB / 424.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.317, allocations: 4 kB / 424.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.3172, allocations: 19.73 kB / 424.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.001e-05/0.3172, allocations: 27.72 kB / 424.9 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.3175, allocations: 63.86 kB / 425 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.3177, allocations: 131.5 kB / 425.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.3179, allocations: 41.8 kB / 425.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.384e-05/0.318, allocations: 47.8 kB / 425.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.3181, allocations: 63.69 kB / 425.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.3181, allocations: 12 kB / 425.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.106e-05/0.3182, allocations: 8 kB / 425.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.295e-05/0.3182, allocations: 23.92 kB / 425.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.472e-05/0.3183, allocations: 59.67 kB / 425.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.3185, allocations: 131 kB / 425.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3185, allocations: 4 kB / 425.5 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3185, allocations: 0 / 425.5 MB, free: 4.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3185, allocations: 4 kB / 425.5 MB, free: 4.57 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.0006632/0.3192, allocations: 438.8 kB / 425.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3192, allocations: 8.031 kB / 425.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.291e-05/0.3193, allocations: 16.84 kB / 425.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.3196, allocations: 204.2 kB / 426.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.3196, allocations: 12.31 kB / 426.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.3196, allocations: 16.38 kB / 426.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005447/0.3202, allocations: 238.9 kB / 426.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.3202, allocations: 3.938 kB / 426.4 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.3202, allocations: 8 kB / 426.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.3202, allocations: 0 / 426.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.3205, allocations: 87.88 kB / 426.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007758/0.3213, allocations: 0.5961 MB / 427.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.3216, allocations: 147.9 kB / 427.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3218, allocations: 74.56 kB / 427.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.3218, allocations: 0 / 427.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.3218, allocations: 38.56 kB / 427.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/0.3218, allocations: 0 / 427.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005233/0.3224, allocations: 185.3 kB / 427.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.3224, allocations: 114.8 kB / 427.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.3226, allocations: 134.2 kB / 427.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.3226, allocations: 25.7 kB / 427.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.458e-05/0.3227, allocations: 124 kB / 427.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.3227, allocations: 27.78 kB / 427.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.574e-05/0.3228, allocations: 37.84 kB / 428 MB, free: 1.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3229, allocations: 322.8 kB / 428.3 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.323, allocations: 39.91 kB / 428.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.3232, allocations: 138.6 kB / 428.5 MB, free: 1.242 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.0004318/0.3236, allocations: 278.6 kB / 428.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3236, allocations: 4 kB / 428.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00038/0.324, allocations: 201.2 kB / 428.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.324, allocations: 4 kB / 429 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.324, allocations: 4.469 kB / 429 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.3241, allocations: 15.98 kB / 429 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.3242, allocations: 39.92 kB / 429 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.3242, allocations: 4 kB / 429 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.3243, allocations: 27.88 kB / 429 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.3243, allocations: 8 kB / 429 MB, free: 0.5938 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.0001314/0.3245, allocations: 137 kB / 429.2 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.3246, allocations: 89.56 kB / 429.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.603e-05/0.3247, allocations: 16.72 kB / 429.3 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3247, allocations: 8 kB / 429.3 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3247, allocations: 0 / 429.3 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3247, allocations: 0 / 429.3 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.325, allocations: 221.4 kB / 429.5 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.325, allocations: 0 / 429.5 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002217/0.3252, allocations: 47.91 kB / 429.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3252, allocations: 480 / 429.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.3252, allocations: 4 kB / 429.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3252, allocations: 3.938 kB / 429.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.748e-06/0.3252, allocations: 4 kB / 429.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.3258, allocations: 387.3 kB / 429.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.039e-05/0.3259, allocations: 89.27 kB / 430 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.3259, allocations: 12 kB / 430 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.3261, allocations: 12.05 kB / 430.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.3261, allocations: 7.984 kB / 430.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.3261, allocations: 8 kB / 430.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.12e-05/0.3262, allocations: 106 kB / 430.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3262, allocations: 0 / 430.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.3265, allocations: 31.95 kB / 430.2 MB, free: 15.33 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.0001263/0.3266, allocations: 99.25 kB / 430.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003671/0.327, allocations: 130.6 kB / 430.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.327, allocations: 0 / 430.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3271, allocations: 28.86 kB / 430.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.3276, allocations: 55.94 kB / 430.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008996/0.3285, allocations: 413.6 kB / 430.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.3289, allocations: 0.7201 MB / 431.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.501e-05/0.3289, allocations: 9.078 kB / 431.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.084e-05/0.329, allocations: 15.44 kB / 431.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.329, allocations: 0 / 431.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Templates: time 0.004542/0.3335, allocations: 1.394 MB / 433.1 MB, free: 12.46 MB / 350.1 MB 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/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-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches