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.001342/0.001342, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001437, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 60.31 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09548/0.09666, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003205/0.0999, allocations: 2.009 MB / 359.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008948/0.1008, allocations: 0.561 MB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.197e-05/0.1009, allocations: 4 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.835e-05/0.101, allocations: 15.8 kB / 360.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.1012, allocations: 35.72 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.1014, allocations: 51.86 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.1016, allocations: 123.6 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.1017, allocations: 57.36 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.98e-05/0.1018, allocations: 59.7 kB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.803e-05/0.1019, allocations: 51.78 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.102, allocations: 11.94 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.252e-05/0.102, allocations: 12 kB / 360.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.102, allocations: 27.91 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.022e-05/0.1021, allocations: 67.66 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.1023, allocations: 115.9 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1023, allocations: 4 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1023, allocations: 4 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1023, allocations: 0 / 360.8 MB, free: 10.81 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.0006069/0.1029, allocations: 427 kB / 361.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.103, allocations: 8.031 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.12e-05/0.103, allocations: 42.75 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.1031, allocations: 20.75 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.1033, allocations: 208.1 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.1033, allocations: 12.38 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.1034, allocations: 16.31 kB / 361.5 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.1039, allocations: 254.9 kB / 361.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.1039, allocations: 0 / 361.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.1039, allocations: 7.938 kB / 361.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1039, allocations: 4 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.1042, allocations: 83.88 kB / 361.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006541/0.1049, allocations: 0.5997 MB / 362.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.1052, allocations: 151.9 kB / 362.6 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.1054, allocations: 78.62 kB / 362.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.1054, allocations: 4 kB / 362.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.1054, allocations: 34.5 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.735e-06/0.1055, allocations: 4 kB / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005246/0.106, allocations: 181.4 kB / 362.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/0.1061, allocations: 114.8 kB / 363 MB, free: 8.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.175e-05/0.1062, allocations: 136.9 kB / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.1062, allocations: 25.7 kB / 363.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.1063, allocations: 111.8 kB / 363.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.1063, allocations: 27.92 kB / 363.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.1063, allocations: 37.61 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1065, allocations: 326.8 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1066, allocations: 35.97 kB / 363.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.1068, allocations: 136.7 kB / 363.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.107, allocations: 185.7 kB / 364 MB, free: 7.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1071, allocations: 7.938 kB / 364 MB, free: 7.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003632/0.1074, allocations: 193.2 kB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1074, allocations: 6.969 kB / 364.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1075, allocations: 4 kB / 364.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1075, allocations: 4 kB / 364.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1076, allocations: 56.38 kB / 364.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.1077, allocations: 7.938 kB / 364.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.773e-05/0.1078, allocations: 19.83 kB / 364.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.1078, allocations: 16 kB / 364.3 MB, free: 6.883 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.0001026/0.1079, allocations: 137.6 kB / 364.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.108, allocations: 85.91 kB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.009e-05/0.1081, allocations: 28.58 kB / 364.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1081, allocations: 0 / 364.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.1081, allocations: 8 kB / 364.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1081, allocations: 4 kB / 364.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.1084, allocations: 209.4 kB / 364.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1084, allocations: 0 / 364.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.1086, allocations: 35.98 kB / 364.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1086, allocations: 0 / 364.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.1086, allocations: 7.984 kB / 364.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1086, allocations: 0 / 364.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1086, allocations: 0 / 364.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005446/0.1092, allocations: 383.3 kB / 365.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.1092, allocations: 92.97 kB / 365.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.1093, allocations: 8 kB / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.1094, allocations: 4 kB / 365.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.1095, allocations: 8.047 kB / 365.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.1095, allocations: 8 kB / 365.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.64e-05/0.1095, allocations: 97.8 kB / 365.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1095, allocations: 4 kB / 365.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.1099, allocations: 27.91 kB / 365.4 MB, free: 5.656 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.0007517/0.1106, allocations: 0.9115 MB / 366.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003316/0.111, allocations: 136.6 kB / 366.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.111, allocations: 0 / 366.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.187e-05/0.1111, allocations: 23.98 kB / 366.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004658/0.1115, allocations: 60.31 kB / 366.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.1137, allocations: 2.049 MB / 368.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.114, allocations: 0.724 MB / 369.3 MB, free: 1.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.604e-05/0.1141, allocations: 9.078 kB / 369.3 MB, free: 1.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.372e-05/0.1142, allocations: 39.42 kB / 369.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1142, allocations: 0 / 369.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3841/0.4982, allocations: 2.72 MB / 372.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/8.569, allocations: 7.5 kB / 372.1 MB, free: 20.16 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