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.00128/0.001285, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.3 MB, free: 9.012 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 61.22 kB / 306.3 MB, free: 0.6914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09491, allocations: 50.52 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003257/0.09821, allocations: 2.097 MB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.09931, allocations: 0.5882 MB / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.09946, allocations: 11.94 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.09959, allocations: 15.86 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.09977, allocations: 27.83 kB / 359.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.1001, allocations: 63.88 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.1003, allocations: 123.5 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.1004, allocations: 61.36 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.531e-05/0.1005, allocations: 47.78 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.478e-05/0.1006, allocations: 51.72 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.1006, allocations: 8 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.338e-05/0.1006, allocations: 8 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.102e-05/0.1007, allocations: 35.83 kB / 360 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.357e-05/0.1007, allocations: 63.61 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.1009, allocations: 123.8 kB / 360.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1009, allocations: 11.94 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1009, allocations: 0 / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1009, allocations: 0 / 360.2 MB, free: 10.82 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.0006041/0.1015, allocations: 462.8 kB / 360.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.1016, allocations: 12.03 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.1016, allocations: 42.75 kB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.093e-05/0.1017, allocations: 20.66 kB / 360.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.1019, allocations: 219.4 kB / 360.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1019, allocations: 12.38 kB / 360.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.1019, allocations: 16.38 kB / 361 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.1024, allocations: 246.7 kB / 361.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1024, allocations: 4 kB / 361.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.1025, allocations: 4 kB / 361.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.1025, allocations: 4 kB / 361.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002549/0.1027, allocations: 87.86 kB / 361.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.1033, allocations: 0.6037 MB / 361.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.1037, allocations: 147.7 kB / 362.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1039, allocations: 86.75 kB / 362.1 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.1039, allocations: 0 / 362.1 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.1039, allocations: 34.56 kB / 362.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.1039, allocations: 0 / 362.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004992/0.1044, allocations: 193.2 kB / 362.4 MB, free: 8.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.1045, allocations: 118.8 kB / 362.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1046, allocations: 152.7 kB / 362.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.1047, allocations: 33.64 kB / 362.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.266e-05/0.1047, allocations: 116.4 kB / 362.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.1048, allocations: 35.77 kB / 362.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.1048, allocations: 29.72 kB / 362.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.531e-05/0.1049, allocations: 322.8 kB / 363.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.105, allocations: 47.91 kB / 363.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.1052, allocations: 137.3 kB / 363.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.1055, allocations: 181.5 kB / 363.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1055, allocations: 11.88 kB / 363.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003516/0.1058, allocations: 193.1 kB / 363.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1058, allocations: 8 kB / 363.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1059, allocations: 4 kB / 363.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.1059, allocations: 4 kB / 363.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.106, allocations: 48.39 kB / 363.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.106, allocations: 11.98 kB / 363.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1062, allocations: 19.84 kB / 363.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.1062, allocations: 8 kB / 363.8 MB, free: 6.801 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.0001061/0.1063, allocations: 146.1 kB / 364 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.1064, allocations: 89.53 kB / 364 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.868e-05/0.1065, allocations: 24.7 kB / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1065, allocations: 0 / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1065, allocations: 4 kB / 364.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1066, allocations: 4 kB / 364.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.1068, allocations: 217.4 kB / 364.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1068, allocations: 0 / 364.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.107, allocations: 39.91 kB / 364.3 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.107, allocations: 4 kB / 364.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.107, allocations: 480 / 364.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.107, allocations: 0 / 364.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.107, allocations: 4 kB / 364.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004933/0.1075, allocations: 393.6 kB / 364.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.583e-05/0.1076, allocations: 93 kB / 364.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.1076, allocations: 8 kB / 364.8 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.1078, allocations: 11.92 kB / 364.8 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.1078, allocations: 12.05 kB / 364.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.1078, allocations: 8 kB / 364.8 MB, free: 5.664 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.794e-05/0.1079, allocations: 119.3 kB / 365 MB, free: 5.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1079, allocations: 0 / 365 MB, free: 5.547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.1083, allocations: 39.84 kB / 365 MB, free: 5.508 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.0007504/0.109, allocations: 0.9153 MB / 365.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.1093, allocations: 120.7 kB / 366 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1093, allocations: 0 / 366 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.372e-05/0.1094, allocations: 31.97 kB / 366.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.1099, allocations: 56.47 kB / 366.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.1123, allocations: 2.15 MB / 368.3 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.1126, allocations: 0.7243 MB / 369 MB, free: 1.262 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.922e-05/0.1126, allocations: 13.44 kB / 369 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.307e-05/0.1127, allocations: 39.42 kB / 369 MB, free: 1.211 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1127, allocations: 0 / 369 MB, free: 1.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1798/0.2925, allocations: 2.691 MB / 371.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.2927, allocations: 241.6 kB / 372 MB, free: 19.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.034, allocations: 2.953 kB / 372 MB, free: 19.32 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