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.0007601/0.0007601, allocations: 95.59 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008343/0.0008344, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002062, allocations: 7.938 kB / 307.8 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.0843, allocations: 51.52 MB / 359.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002087/0.08642, allocations: 1.711 MB / 361.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009183/0.08736, allocations: 0.5455 MB / 361.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.544e-05/0.08748, allocations: 8 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.961e-05/0.08757, allocations: 7.922 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.08771, allocations: 27.78 kB / 361.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.08796, allocations: 47.95 kB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.08812, allocations: 115.6 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.08825, allocations: 57.03 kB / 361.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.691e-05/0.08833, allocations: 39.73 kB / 361.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.63e-05/0.08841, allocations: 47.75 kB / 362 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.08843, allocations: 4 kB / 362 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.65e-05/0.08845, allocations: 8 kB / 362 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.65e-05/0.08849, allocations: 19.88 kB / 362 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.26e-05/0.08855, allocations: 69.44 kB / 362.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.08869, allocations: 119.8 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.0887, allocations: 0 / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08871, allocations: 4 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.08872, allocations: 0 / 362.2 MB, free: 10.38 MB / 302.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.0005224/0.08925, allocations: 415.1 kB / 362.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.08929, allocations: 8.031 kB / 362.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.743e-05/0.08934, allocations: 42.75 kB / 362.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.08938, allocations: 16.75 kB / 362.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.08957, allocations: 219.7 kB / 362.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.08959, allocations: 12.38 kB / 362.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.08962, allocations: 12.38 kB / 362.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004717/0.0901, allocations: 250.6 kB / 363.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.09013, allocations: 7.922 kB / 363.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.09015, allocations: 3.938 kB / 363.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.09016, allocations: 7.938 kB / 363.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.09043, allocations: 99.88 kB / 363.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.09101, allocations: 0.5921 MB / 363.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.09134, allocations: 151.9 kB / 364 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.09151, allocations: 86.62 kB / 364.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.09154, allocations: 8 kB / 364.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.09157, allocations: 34.5 kB / 364.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.09158, allocations: 0 / 364.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005128/0.09209, allocations: 201.3 kB / 364.3 MB, free: 8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.09216, allocations: 110.8 kB / 364.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.915e-05/0.09227, allocations: 138.2 kB / 364.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.09229, allocations: 33.7 kB / 364.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.09236, allocations: 107.9 kB / 364.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-05/0.09239, allocations: 23.7 kB / 364.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.09243, allocations: 25.7 kB / 364.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.046e-05/0.09253, allocations: 326.8 kB / 365.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.09265, allocations: 39.97 kB / 365.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.09282, allocations: 147.7 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.09312, allocations: 193.5 kB / 365.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.09313, allocations: 4 kB / 365.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003661/0.0935, allocations: 209.4 kB / 365.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.09353, allocations: 8 kB / 365.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.09354, allocations: 8.406 kB / 365.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.09356, allocations: 8 kB / 365.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.09371, allocations: 43.97 kB / 365.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.09373, allocations: 7.938 kB / 365.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.09383, allocations: 31.81 kB / 365.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.09386, allocations: 8.375 kB / 365.8 MB, free: 6.395 MB / 302.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 9.346e-05/0.09395, allocations: 138.1 kB / 365.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.0941, allocations: 93.47 kB / 366 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.929e-05/0.09419, allocations: 16.72 kB / 366 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.09421, allocations: 4 kB / 366 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.09422, allocations: 0 / 366 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.09423, allocations: 3.984 kB / 366 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002401/0.09448, allocations: 209.5 kB / 366.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.09449, allocations: 4 kB / 366.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.09466, allocations: 35.92 kB / 366.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.09467, allocations: 4 kB / 366.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.09469, allocations: 4 kB / 366.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.0947, allocations: 3.984 kB / 366.3 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.09471, allocations: 4 kB / 366.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.09521, allocations: 402.2 kB / 366.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.09526, allocations: 88.98 kB / 366.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.09528, allocations: 4 kB / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.09542, allocations: 11.98 kB / 366.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.09546, allocations: 16.05 kB / 366.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.09548, allocations: 4 kB / 366.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.937e-05/0.09553, allocations: 95.27 kB / 366.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09554, allocations: 0 / 366.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.09584, allocations: 24 kB / 366.9 MB, free: 5.152 MB / 302.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.0006853/0.09653, allocations: 0.9333 MB / 367.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.09684, allocations: 132.7 kB / 368 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.09685, allocations: 0 / 368 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.09696, allocations: 43.97 kB / 368 MB, free: 4.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.09741, allocations: 48.39 kB / 368 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.09949, allocations: 2.168 MB / 370.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.09972, allocations: 0.7161 MB / 370.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.595e-05/0.09977, allocations: 21 kB / 371 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.914e-05/0.09984, allocations: 43.36 kB / 371 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09984, allocations: 0 / 371 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1803/0.2801, allocations: 2.422 MB / 373.4 MB, free: 19.35 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.2804, allocations: 234.3 kB / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.031, allocations: 0 / 373.6 MB, free: 19.09 MB / 302.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