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.0009054/0.0009054, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 227.7 MB / 246.8 MB, free: 11.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002092/0.0002092, allocations: 8 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09398, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002072/0.09608, allocations: 1.735 MB / 361.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.09711, allocations: 0.5844 MB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.09727, allocations: 8 kB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.264e-05/0.09737, allocations: 11.86 kB / 361.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.09754, allocations: 27.84 kB / 361.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.09783, allocations: 63.25 kB / 361.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.098, allocations: 119.6 kB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.09814, allocations: 49.52 kB / 361.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.51e-05/0.09822, allocations: 43.73 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.867e-05/0.09832, allocations: 51.7 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.09834, allocations: 7.984 kB / 362 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.09837, allocations: 8 kB / 362.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.201e-05/0.09843, allocations: 23.86 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.963e-05/0.0985, allocations: 81.31 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.09865, allocations: 131.7 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.09866, allocations: 0 / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09867, allocations: 4 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09868, allocations: 0 / 362.3 MB, free: 10.24 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005364/0.09922, allocations: 437.2 kB / 362.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.09927, allocations: 11.97 kB / 362.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.09932, allocations: 46.73 kB / 362.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.09936, allocations: 28.66 kB / 362.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.09957, allocations: 219.4 kB / 363 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.09959, allocations: 12.36 kB / 363 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.14e-05/0.09964, allocations: 12.38 kB / 363 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004779/0.1001, allocations: 261.1 kB / 363.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1002, allocations: 3.984 kB / 363.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1002, allocations: 4 kB / 363.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1002, allocations: 0 / 363.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.1004, allocations: 103.9 kB / 363.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006111/0.1011, allocations: 0.5998 MB / 364 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.1014, allocations: 155.7 kB / 364.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1016, allocations: 90.7 kB / 364.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.1016, allocations: 0 / 364.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.1016, allocations: 42.56 kB / 364.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.001e-06/0.1016, allocations: 0 / 364.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005094/0.1022, allocations: 205.3 kB / 364.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.1022, allocations: 106.8 kB / 364.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.1024, allocations: 164.7 kB / 364.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1024, allocations: 29.7 kB / 364.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.1025, allocations: 112.5 kB / 364.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.1025, allocations: 27.64 kB / 364.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.1025, allocations: 21.7 kB / 364.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.715e-05/0.1026, allocations: 326.8 kB / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.1028, allocations: 43.91 kB / 365.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.1029, allocations: 145.3 kB / 365.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.1032, allocations: 193.5 kB / 365.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1032, allocations: 3.938 kB / 365.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003678/0.1036, allocations: 205.3 kB / 365.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1037, allocations: 12.41 kB / 365.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1037, allocations: 8 kB / 365.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1037, allocations: 4.047 kB / 365.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.1038, allocations: 55.89 kB / 365.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1039, allocations: 4 kB / 365.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.104, allocations: 23.83 kB / 365.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.104, allocations: 12 kB / 366 MB, free: 6.18 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 0.0001029/0.1041, allocations: 146.1 kB / 366.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.1042, allocations: 93.81 kB / 366.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.973e-05/0.1043, allocations: 20.7 kB / 366.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1043, allocations: 0 / 366.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1044, allocations: 4 kB / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1044, allocations: 96 / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.1046, allocations: 221.5 kB / 366.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1046, allocations: 0 / 366.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.1048, allocations: 43.92 kB / 366.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1048, allocations: 4 kB / 366.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.1048, allocations: 0 / 366.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1048, allocations: 4 kB / 366.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1048, allocations: 0 / 366.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.1053, allocations: 403.3 kB / 366.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.178e-05/0.1054, allocations: 104.9 kB / 367 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1055, allocations: 4 kB / 367 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1056, allocations: 11.94 kB / 367 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.1056, allocations: 12.05 kB / 367 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.1056, allocations: 0 / 367 MB, free: 5.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.792e-05/0.1057, allocations: 123.4 kB / 367.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1057, allocations: 0 / 367.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.1061, allocations: 27.94 kB / 367.2 MB, free: 4.879 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.0007404/0.1068, allocations: 0.9427 MB / 368.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.1071, allocations: 131.5 kB / 368.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1071, allocations: 0 / 368.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.928e-05/0.1072, allocations: 40.03 kB / 368.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.1077, allocations: 59.94 kB / 368.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1102, allocations: 2.23 MB / 370.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.1105, allocations: 0.7207 MB / 371.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.71e-05/0.1106, allocations: 17.41 kB / 371.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.371e-05/0.1107, allocations: 39.42 kB / 371.3 MB, free: 468 kB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1107, allocations: 3.938 kB / 371.3 MB, free: 464 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/0.2625, allocations: 2.597 MB / 373.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.2627, allocations: 247.9 kB / 374.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/1.952, allocations: 4.469 kB / 374.2 MB, free: 18.01 MB / 302.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.0.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