Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001782/0.001782, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3433, allocations: 50.55 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00381/0.3472, allocations: 2.014 MB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.3484, allocations: 0.5376 MB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.3486, allocations: 0 / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.3487, allocations: 15.81 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.049e-05/0.3489, allocations: 27.72 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004296/0.3493, allocations: 59.38 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.3496, allocations: 123.6 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.3498, allocations: 53.41 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.3499, allocations: 51.78 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.35, allocations: 47.78 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.3501, allocations: 12 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.78e-05/0.3501, allocations: 8 kB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.3502, allocations: 31.91 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.3503, allocations: 59.66 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.3506, allocations: 122.4 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.3506, allocations: 4 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.3506, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3507, allocations: 3.984 kB / 412 MB, free: 14.31 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008294/0.3515, allocations: 423 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.057e-05/0.3516, allocations: 12.03 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.79e-05/0.3516, allocations: 46.73 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.3517, allocations: 12.84 kB / 412.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.3521, allocations: 212.1 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.3521, allocations: 12.36 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.3522, allocations: 16.33 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005961/0.3528, allocations: 250.6 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3528, allocations: 0 / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.3528, allocations: 4 kB / 412.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.3529, allocations: 4 kB / 412.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.3531, allocations: 87.88 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008634/0.354, allocations: 0.5882 MB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.3544, allocations: 155.9 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.3546, allocations: 70.64 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.3546, allocations: 3.938 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.3546, allocations: 38.55 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.705e-06/0.3547, allocations: 4 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006311/0.3553, allocations: 177.4 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.3554, allocations: 110.8 kB / 414.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3556, allocations: 126.1 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.3556, allocations: 29.7 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3557, allocations: 124 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.3558, allocations: 27.78 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/0.3558, allocations: 33.72 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002397/0.3561, allocations: 322.8 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.3562, allocations: 35.97 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.3564, allocations: 135.2 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.3567, allocations: 180.7 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3567, allocations: 0 / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000397/0.3571, allocations: 189.2 kB / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3572, allocations: 8 kB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3572, allocations: 7.938 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3572, allocations: 4.375 kB / 415.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3574, allocations: 43.91 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.3574, allocations: 4.438 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3576, allocations: 27.88 kB / 415.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.3576, allocations: 15.92 kB / 415.4 MB, free: 10.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001278/0.3577, allocations: 133.7 kB / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.3579, allocations: 81.58 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.3579, allocations: 20.66 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.358, allocations: 0 / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.358, allocations: 4 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.358, allocations: 7.922 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003265/0.3583, allocations: 201.6 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3583, allocations: 0 / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.3585, allocations: 39.91 kB / 415.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3585, allocations: 0 / 415.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.3585, allocations: 7.938 kB / 415.9 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3586, allocations: 4 kB / 415.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3586, allocations: 0 / 415.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/0.3592, allocations: 371.5 kB / 416.3 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.049e-05/0.3593, allocations: 92.98 kB / 416.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.3593, allocations: 7.938 kB / 416.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.3595, allocations: 15.92 kB / 416.4 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.3596, allocations: 8 kB / 416.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.3596, allocations: 8.297 kB / 416.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.824e-05/0.3597, allocations: 98.5 kB / 416.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3597, allocations: 0 / 416.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003488/0.36, allocations: 24 kB / 416.5 MB, free: 9.215 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 (14): * Single equations (assignments): 14 * 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.001011/0.361, allocations: 0.9155 MB / 417.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003708/0.3614, allocations: 116.6 kB / 417.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3614, allocations: 4.062 kB / 417.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.3616, allocations: 27.97 kB / 417.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.3621, allocations: 59.48 kB / 417.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.3649, allocations: 2.021 MB / 419.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.3653, allocations: 0.7162 MB / 420.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.171e-05/0.3654, allocations: 8.641 kB / 420.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.147e-05/0.3655, allocations: 35.42 kB / 420.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3655, allocations: 4 kB / 420.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.3947, allocations: 2.747 MB / 423.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.834/9.229, allocations: 4.438 kB / 423.2 MB, free: 2.523 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches