Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001269/0.001269, allocations: 122.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.001277/0.001277, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3307, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003513/0.3342, allocations: 2.007 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.3353, allocations: 0.561 MB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.3354, allocations: 0 / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.3355, allocations: 19.8 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.3357, allocations: 39.72 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.336, allocations: 55.62 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.3361, allocations: 119.6 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.3363, allocations: 65.34 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.191e-05/0.3364, allocations: 55.73 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.728e-05/0.3365, allocations: 55.75 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.3365, allocations: 15.94 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.829e-05/0.3366, allocations: 8 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.3366, allocations: 31.86 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.761e-05/0.3367, allocations: 55.73 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.3369, allocations: 133.1 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3369, allocations: 3.984 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3369, allocations: 0 / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.3369, allocations: 3.938 kB / 411.9 MB, free: 14.33 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006567/0.3376, allocations: 427.1 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3376, allocations: 8.031 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.009e-05/0.3377, allocations: 46.73 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.3377, allocations: 16.75 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.338, allocations: 204.1 kB / 412.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.338, allocations: 12.38 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.338, allocations: 12.38 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.3385, allocations: 251.2 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3385, allocations: 3.984 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.3385, allocations: 8 kB / 412.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3386, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.3388, allocations: 87.88 kB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.3394, allocations: 0.5843 MB / 413.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.3397, allocations: 151.7 kB / 413.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.3399, allocations: 78.75 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.3399, allocations: 11.98 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.3399, allocations: 30.56 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.172e-06/0.34, allocations: 0 / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004895/0.3405, allocations: 185.3 kB / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.3405, allocations: 115.2 kB / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.3407, allocations: 133.6 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.3407, allocations: 29.7 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.447e-05/0.3408, allocations: 112 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.319e-05/0.3408, allocations: 31.58 kB / 414.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.3409, allocations: 37.7 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.341, allocations: 318.8 kB / 414.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.3411, allocations: 47.91 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.3413, allocations: 132.7 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.3416, allocations: 189.5 kB / 415.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.3416, allocations: 15.86 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003415/0.3419, allocations: 189.5 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.342, allocations: 8 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.342, allocations: 4 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.342, allocations: 4 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.3421, allocations: 47.91 kB / 415.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.3422, allocations: 4 kB / 415.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3423, allocations: 27.83 kB / 415.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.3423, allocations: 8 kB / 415.5 MB, free: 10.41 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.0001068/0.3424, allocations: 137.8 kB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.3425, allocations: 93.44 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.757e-05/0.3426, allocations: 16.72 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3426, allocations: 3.984 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3426, allocations: 0 / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3427, allocations: 4 kB / 415.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.3429, allocations: 213.5 kB / 415.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3429, allocations: 0 / 415.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.3431, allocations: 35.92 kB / 416 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.3431, allocations: 4 kB / 416 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.3432, allocations: 7.984 kB / 416 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3432, allocations: 0 / 416 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3432, allocations: 0 / 416 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005115/0.3437, allocations: 383.3 kB / 416.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.916e-05/0.3438, allocations: 85.05 kB / 416.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3438, allocations: 7.984 kB / 416.4 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.3439, allocations: 11.94 kB / 416.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.344, allocations: 7.984 kB / 416.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.344, allocations: 4 kB / 416.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.819e-05/0.3441, allocations: 98.88 kB / 416.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3441, allocations: 3.938 kB / 416.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003347/0.3444, allocations: 32 kB / 416.6 MB, free: 9.172 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.000814/0.3452, allocations: 0.9221 MB / 417.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003128/0.3455, allocations: 119.8 kB / 417.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3456, allocations: 0 / 417.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.106e-05/0.3457, allocations: 29.33 kB / 417.7 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.3461, allocations: 66.19 kB / 417.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.3484, allocations: 2.045 MB / 419.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.3487, allocations: 0.7084 MB / 420.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.196e-05/0.3487, allocations: 17.08 kB / 420.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.227e-05/0.3488, allocations: 31.44 kB / 420.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3488, allocations: 0 / 420.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.3716, allocations: 2.84 MB / 423.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.704, allocations: 3.859 kB / 423.4 MB, free: 2.316 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches