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.001335/0.001335, allocations: 122.8 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.001332/0.001332, allocations: 202 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.458/1.458, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 59.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2661, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003878/0.2701, allocations: 2.042 MB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2714, allocations: 0.5999 MB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2715, allocations: 7.938 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.2716, allocations: 15.8 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.2719, allocations: 31.72 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.2722, allocations: 71.78 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.2724, allocations: 123.6 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.2726, allocations: 61.84 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.2727, allocations: 51.78 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.2728, allocations: 55.7 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.2728, allocations: 12 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.643e-05/0.2729, allocations: 16 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.2729, allocations: 35.84 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.742e-05/0.273, allocations: 67.59 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.2733, allocations: 146.3 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2733, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2733, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.2733, allocations: 0 / 412.1 MB, free: 14.12 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.0006749/0.274, allocations: 458.7 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.274, allocations: 12.03 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.94e-05/0.2741, allocations: 42.75 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.17e-05/0.2741, allocations: 20.8 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.2744, allocations: 220.1 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.2745, allocations: 8.375 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.2745, allocations: 16.36 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005363/0.2751, allocations: 267 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.2751, allocations: 3.984 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.2751, allocations: 11.98 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2751, allocations: 0 / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.2754, allocations: 87.88 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006862/0.2761, allocations: 0.5922 MB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.2765, allocations: 151.9 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.2766, allocations: 70.64 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.2767, allocations: 7.984 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.2767, allocations: 46.5 kB / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.2767, allocations: 0 / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005492/0.2773, allocations: 193.3 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.941e-05/0.2774, allocations: 110.8 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.2775, allocations: 158.3 kB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.2776, allocations: 37.7 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.2776, allocations: 112.5 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.2777, allocations: 27.78 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.346e-05/0.2778, allocations: 37.7 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2779, allocations: 322.8 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.278, allocations: 35.97 kB / 415.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.2782, allocations: 147.8 kB / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.2786, allocations: 185.5 kB / 415.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.2786, allocations: 3.938 kB / 415.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004013/0.279, allocations: 201.1 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.279, allocations: 8.469 kB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.2791, allocations: 8 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.2791, allocations: 4 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.2792, allocations: 47.91 kB / 415.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.2793, allocations: 8.375 kB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.2794, allocations: 19.88 kB / 415.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.2794, allocations: 12 kB / 415.8 MB, free: 10.09 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.0001269/0.2795, allocations: 129.7 kB / 415.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.2797, allocations: 97.47 kB / 416 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.672e-05/0.2798, allocations: 24.7 kB / 416 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2798, allocations: 4 kB / 416 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2798, allocations: 0 / 416 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.2798, allocations: 3.938 kB / 416 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003179/0.2801, allocations: 221.7 kB / 416.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2801, allocations: 0 / 416.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.2803, allocations: 35.98 kB / 416.3 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.2803, allocations: 0 / 416.3 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.2804, allocations: 7.984 kB / 416.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2804, allocations: 0 / 416.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2804, allocations: 11.92 kB / 416.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.281, allocations: 379.4 kB / 416.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.829e-05/0.2811, allocations: 105 kB / 416.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.2811, allocations: 8.062 kB / 416.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2812, allocations: 8 kB / 416.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.2813, allocations: 3.984 kB / 416.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.2813, allocations: 4 kB / 416.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.2814, allocations: 119.2 kB / 416.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2814, allocations: 0 / 416.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.2817, allocations: 24 kB / 416.9 MB, free: 8.82 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.0009321/0.2827, allocations: 0.9232 MB / 417.8 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003379/0.283, allocations: 127.8 kB / 418 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.283, allocations: 0 / 418 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.2832, allocations: 27.92 kB / 418 MB, free: 7.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.2837, allocations: 80.42 kB / 418.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.2863, allocations: 2.106 MB / 420.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.2868, allocations: 0.7279 MB / 420.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.603e-05/0.2868, allocations: 17.42 kB / 420.9 MB, free: 4.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.025e-05/0.2869, allocations: 39.42 kB / 421 MB, free: 4.547 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2869, allocations: 0 / 421 MB, free: 4.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.3139, allocations: 2.961 MB / 423.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.896/9.21, allocations: 13.59 kB / 423.9 MB, free: 1.766 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.1.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