Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 176.2 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.3 MB / 241.4 MB, free: 11.62 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007763/0.0007764, allocations: 102.5 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003195, allocations: 11.94 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2271, allocations: 50.39 MB / 402.7 MB, free: 32.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.3273, allocations: 78.93 MB / 481.7 MB, free: 1.461 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.3275, allocations: 71.95 kB / 481.7 MB, free: 1.391 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007365/0.3349, allocations: 2.77 MB / 484.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3349, allocations: 0 / 484.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.335, allocations: 4 kB / 484.5 MB, free: 14.63 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005588/0.3355, allocations: 438.9 kB / 484.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3356, allocations: 8.031 kB / 484.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.971e-05/0.3357, allocations: 20.73 kB / 485 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.3359, allocations: 216.8 kB / 485.2 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.3359, allocations: 8.375 kB / 485.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.649e-05/0.336, allocations: 20.38 kB / 485.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004789/0.3364, allocations: 259 kB / 485.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3365, allocations: 192 / 485.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.3365, allocations: 11.94 kB / 485.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-06/0.3365, allocations: 0 / 485.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.3368, allocations: 95.86 kB / 485.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.3375, allocations: 0.6037 MB / 486.2 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.3378, allocations: 156 kB / 486.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.338, allocations: 82.53 kB / 486.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.3381, allocations: 4 kB / 486.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.3381, allocations: 38.5 kB / 486.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.904e-06/0.3381, allocations: 0 / 486.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005291/0.3386, allocations: 201.3 kB / 486.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.3387, allocations: 118.7 kB / 486.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.3389, allocations: 150.9 kB / 486.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.3389, allocations: 33.7 kB / 486.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.72e-05/0.339, allocations: 112.6 kB / 487 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.339, allocations: 23.7 kB / 487.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-06/0.339, allocations: 4 kB / 487.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3391, allocations: 322.8 kB / 487.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3393, allocations: 40.34 kB / 487.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.3394, allocations: 140.7 kB / 487.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.3397, allocations: 205.5 kB / 487.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3397, allocations: 0 / 487.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003861/0.3401, allocations: 217.2 kB / 488 MB, free: 10.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3402, allocations: 8 kB / 488 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3402, allocations: 4 kB / 488 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.3402, allocations: 4 kB / 488 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.3404, allocations: 52.38 kB / 488 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.3404, allocations: 11.94 kB / 488.1 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.3405, allocations: 23.83 kB / 488.1 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.3405, allocations: 8 kB / 488.1 MB, free: 10.66 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.3407, allocations: 138.2 kB / 488.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3408, allocations: 93.52 kB / 488.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.833e-05/0.3409, allocations: 20.72 kB / 488.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.3409, allocations: 3.938 kB / 488.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.3409, allocations: 7.938 kB / 488.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3409, allocations: 0 / 488.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.3412, allocations: 213.5 kB / 488.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3412, allocations: 0 / 488.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.3414, allocations: 39.92 kB / 488.6 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3414, allocations: 0 / 488.6 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.3414, allocations: 7.984 kB / 488.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.83e-06/0.3414, allocations: 4 kB / 488.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3414, allocations: 4 kB / 488.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.342, allocations: 392 kB / 489 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.77e-05/0.3421, allocations: 112.9 kB / 489.1 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.3421, allocations: 8 kB / 489.1 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.3423, allocations: 11.98 kB / 489.1 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.3423, allocations: 4 kB / 489.1 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.3423, allocations: 4 kB / 489.1 MB, free: 9.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.614e-05/0.3424, allocations: 121.1 kB / 489.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3424, allocations: 0 / 489.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003298/0.3428, allocations: 35.91 kB / 489.3 MB, free: 9.355 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001218/0.3429, allocations: 107.2 kB / 489.4 MB, free: 9.242 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.3432, allocations: 135.4 kB / 489.5 MB, free: 9.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3432, allocations: 3.938 kB / 489.5 MB, free: 9.109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.3433, allocations: 32.69 kB / 489.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.3439, allocations: 73.72 kB / 489.6 MB, free: 9.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009559/0.3449, allocations: 0.4939 MB / 490.1 MB, free: 8.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.3453, allocations: 0.7282 MB / 490.8 MB, free: 7.727 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.855e-05/0.3454, allocations: 13.42 kB / 490.9 MB, free: 7.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.3454, allocations: 15.42 kB / 490.9 MB, free: 7.695 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3454, allocations: 0 / 490.9 MB, free: 7.695 MB / 362.7 MB Notification: Performance of Templates: time 0.004111/0.3495, allocations: 1.16 MB / 492 MB, free: 6.578 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches