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.00116/0.00116, allocations: 117.7 kB / 17.78 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.001318/0.001318, allocations: 204.6 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.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3015, allocations: 50.53 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003556/0.3051, allocations: 2.022 MB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.3063, allocations: 0.561 MB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.3064, allocations: 0 / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.3066, allocations: 19.8 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001661/0.3068, allocations: 31.72 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.3071, allocations: 51.88 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.3073, allocations: 123.5 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.3075, allocations: 69.36 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.946e-05/0.3076, allocations: 51.72 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.3077, allocations: 55.77 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.3078, allocations: 12 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.149e-05/0.3078, allocations: 8 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.776e-05/0.3078, allocations: 35.84 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.904e-05/0.3079, allocations: 59.73 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.3081, allocations: 129.1 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3081, allocations: 0 / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3081, allocations: 0 / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3082, allocations: 0 / 411.9 MB, free: 14.32 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.0007028/0.3089, allocations: 431 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3089, allocations: 8.031 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.309, allocations: 46.75 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.854e-05/0.309, allocations: 20.73 kB / 412.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.3093, allocations: 204.1 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.3093, allocations: 12.38 kB / 412.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.3094, allocations: 12.38 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005014/0.3099, allocations: 254.6 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3099, allocations: 0 / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.3099, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3099, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.3102, allocations: 91.88 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.3108, allocations: 0.5881 MB / 413.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.3112, allocations: 147.8 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.3114, allocations: 82.64 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.3114, allocations: 4 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.3114, allocations: 38.56 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.3114, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005332/0.312, allocations: 185.3 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/0.3121, allocations: 114.7 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.3122, allocations: 126.1 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.3122, allocations: 33.7 kB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.063e-05/0.3123, allocations: 112.1 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.3124, allocations: 27.64 kB / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/0.3124, allocations: 33.72 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3126, allocations: 318.8 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.3127, allocations: 39.97 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.3129, allocations: 145 kB / 415 MB, free: 10.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.3132, allocations: 189.5 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.3132, allocations: 7.938 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004/0.3137, allocations: 189.4 kB / 415.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.3137, allocations: 10.34 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.3137, allocations: 7.984 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.3137, allocations: 4.469 kB / 415.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3139, allocations: 51.91 kB / 415.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3139, allocations: 8 kB / 415.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.314, allocations: 23.83 kB / 415.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.3141, allocations: 8 kB / 415.5 MB, free: 10.39 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.0001055/0.3142, allocations: 137.7 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.3143, allocations: 97.75 kB / 415.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.299e-05/0.3144, allocations: 20.7 kB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3144, allocations: 4 kB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3144, allocations: 0 / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.3144, allocations: 4 kB / 415.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.3147, allocations: 209.5 kB / 415.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3147, allocations: 0 / 415.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.3149, allocations: 39.91 kB / 416 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3149, allocations: 0 / 416 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.3149, allocations: 8 kB / 416 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3149, allocations: 0 / 416 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.315, allocations: 0 / 416 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.3155, allocations: 390.4 kB / 416.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/0.3155, allocations: 85.05 kB / 416.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.3156, allocations: 0 / 416.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.3157, allocations: 20.05 kB / 416.5 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.3158, allocations: 3.938 kB / 416.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.3158, allocations: 4 kB / 416.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.876e-05/0.3158, allocations: 99.27 kB / 416.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3159, allocations: 0 / 416.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.3162, allocations: 27.94 kB / 416.6 MB, free: 9.16 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.0008882/0.3171, allocations: 0.9192 MB / 417.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003503/0.3174, allocations: 128.3 kB / 417.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3175, allocations: 0 / 417.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.623e-05/0.3176, allocations: 27.92 kB / 417.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004999/0.3181, allocations: 55.94 kB / 417.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.3206, allocations: 2.055 MB / 419.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.3209, allocations: 0.7084 MB / 420.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.197e-05/0.3209, allocations: 13.08 kB / 420.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.516e-05/0.321, allocations: 43.42 kB / 420.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.321, allocations: 0 / 420.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.3438, allocations: 2.829 MB / 423.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.534/8.878, allocations: 11.09 kB / 423.4 MB, free: 2.297 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