Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001611/0.001611, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002138/0.002138, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.597/1.597, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3341, allocations: 50.54 MB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003596/0.3377, allocations: 2.045 MB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.339, allocations: 0.5999 MB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.3391, allocations: 4 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.3393, allocations: 15.8 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.3395, allocations: 31.72 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.3399, allocations: 67.8 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.3401, allocations: 127.6 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.3402, allocations: 61.83 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.897e-05/0.3403, allocations: 59.72 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.3405, allocations: 55.7 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.3405, allocations: 12 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.301e-05/0.3405, allocations: 12 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.999e-05/0.3406, allocations: 35.84 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.846e-05/0.3407, allocations: 67.59 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.341, allocations: 153.1 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.341, allocations: 0 / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.341, allocations: 0 / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.3411, allocations: 0 / 412.1 MB, free: 14.22 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006896/0.3417, allocations: 450.9 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.3418, allocations: 12.02 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.3419, allocations: 42.75 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.3419, allocations: 16.75 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.3423, allocations: 224 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3423, allocations: 8.375 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.3423, allocations: 16.36 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.3428, allocations: 259.1 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.3429, allocations: 0 / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.3429, allocations: 15.92 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.3429, allocations: 0 / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.3432, allocations: 87.81 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006959/0.3439, allocations: 0.5999 MB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.3442, allocations: 151.9 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.3444, allocations: 70.64 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.3444, allocations: 4 kB / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.3445, allocations: 38.5 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.3445, allocations: 4 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005493/0.345, allocations: 189.3 kB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.3451, allocations: 114.8 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.3453, allocations: 158.2 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.3453, allocations: 33.7 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.575e-05/0.3454, allocations: 112.5 kB / 414.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.3454, allocations: 27.73 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/0.3455, allocations: 41.61 kB / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3456, allocations: 322.8 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.3457, allocations: 35.97 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/0.346, allocations: 140.7 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.3463, allocations: 197.6 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.3463, allocations: 3.938 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003867/0.3467, allocations: 193.2 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.3468, allocations: 8 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3468, allocations: 4 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3468, allocations: 4.469 kB / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.347, allocations: 47.91 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.347, allocations: 11.94 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.3471, allocations: 23.83 kB / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.3471, allocations: 8.375 kB / 415.7 MB, free: 10.2 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.3473, allocations: 137.7 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3474, allocations: 93.44 kB / 415.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.3475, allocations: 20.7 kB / 415.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.3476, allocations: 4 kB / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3476, allocations: 7.938 kB / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3476, allocations: 0 / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.3479, allocations: 221.5 kB / 416.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3479, allocations: 0 / 416.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.3481, allocations: 31.98 kB / 416.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3481, allocations: 3.938 kB / 416.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.3482, allocations: 8 kB / 416.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3482, allocations: 0 / 416.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3482, allocations: 0 / 416.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006026/0.3488, allocations: 394.6 kB / 416.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.866e-05/0.3489, allocations: 104.9 kB / 416.7 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.3489, allocations: 4 kB / 416.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.3491, allocations: 8 kB / 416.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.3491, allocations: 8.047 kB / 416.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.3492, allocations: 4 kB / 416.7 MB, free: 9.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.3493, allocations: 119.2 kB / 416.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3493, allocations: 0 / 416.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003409/0.3496, allocations: 24 kB / 416.8 MB, free: 8.93 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.0008983/0.3505, allocations: 0.9228 MB / 417.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003874/0.3509, allocations: 128.7 kB / 417.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3509, allocations: 0 / 417.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.3511, allocations: 27.92 kB / 417.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.3517, allocations: 75.28 kB / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.3545, allocations: 2.103 MB / 420.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.355, allocations: 0.7279 MB / 420.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.424e-05/0.3551, allocations: 9.422 kB / 420.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3553, allocations: 39.42 kB / 420.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.3553, allocations: 4 kB / 420.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02651/0.3818, allocations: 3.021 MB / 423.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.422/8.804, allocations: 7.297 kB / 423.9 MB, free: 1.836 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches