Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 101.3 kB / 16.5 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 52.39 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 49.45 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003742/0.1086, allocations: 2.05 MB / 351.6 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009997/0.1096, allocations: 0.5142 MB / 352.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.1098, allocations: 4 kB / 352.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.11, allocations: 15.86 kB / 352.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.1102, allocations: 23.83 kB / 352.1 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.1105, allocations: 51.89 kB / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.1108, allocations: 119.5 kB / 352.3 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1109, allocations: 52.94 kB / 352.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/0.111, allocations: 47.8 kB / 352.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.181e-05/0.1111, allocations: 51.77 kB / 352.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.1112, allocations: 8 kB / 352.4 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.156e-05/0.1112, allocations: 4 kB / 352.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.1112, allocations: 27.91 kB / 352.5 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.971e-05/0.1113, allocations: 55.67 kB / 352.5 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.1115, allocations: 123.7 kB / 352.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1115, allocations: 0 / 352.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1115, allocations: 0 / 352.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1115, allocations: 8 kB / 352.6 MB, free: 1.598 MB / 286.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.0006875/0.1122, allocations: 425.8 kB / 353.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1123, allocations: 8.031 kB / 353.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.323e-05/0.1123, allocations: 46.73 kB / 353.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.1124, allocations: 12.84 kB / 353.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.1126, allocations: 212.6 kB / 353.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.1126, allocations: 12.36 kB / 353.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.1127, allocations: 16.38 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.1132, allocations: 249.2 kB / 353.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1132, allocations: 4 kB / 353.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.1132, allocations: 8 kB / 353.6 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1133, allocations: 4 kB / 353.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.1135, allocations: 87.86 kB / 353.7 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007363/0.1143, allocations: 0.5842 MB / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.1146, allocations: 151.8 kB / 354.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.1148, allocations: 78.64 kB / 354.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.1149, allocations: 7.984 kB / 354.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.1149, allocations: 30.56 kB / 354.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 3.166e-06/0.1149, allocations: 0 / 354.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005207/0.1154, allocations: 189.5 kB / 354.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.1155, allocations: 114.9 kB / 354.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.1156, allocations: 141.5 kB / 355 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.1156, allocations: 29.7 kB / 355 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.472e-05/0.1157, allocations: 111.8 kB / 355.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.1158, allocations: 27.72 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.1158, allocations: 37.83 kB / 355.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1159, allocations: 326.8 kB / 355.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.1161, allocations: 35.97 kB / 355.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.1162, allocations: 133.7 kB / 355.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.1166, allocations: 189.5 kB / 355.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.1166, allocations: 7.938 kB / 355.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003942/0.117, allocations: 201.3 kB / 356.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.117, allocations: 4 kB / 356.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.117, allocations: 4 kB / 356.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1171, allocations: 4 kB / 356.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.1172, allocations: 55.91 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.1173, allocations: 7.984 kB / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.1174, allocations: 20.31 kB / 356.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1174, allocations: 15.98 kB / 356.2 MB, free: 13.66 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.0001255/0.1175, allocations: 133.7 kB / 356.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.1177, allocations: 89.53 kB / 356.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.1179, allocations: 16.72 kB / 356.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1179, allocations: 0 / 356.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1179, allocations: 0 / 356.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.1179, allocations: 7.984 kB / 356.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.1182, allocations: 205.5 kB / 356.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1182, allocations: 4 kB / 356.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.1184, allocations: 35.92 kB / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1184, allocations: 0 / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1185, allocations: 8 kB / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.1185, allocations: 0 / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1185, allocations: 0 / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006062/0.1191, allocations: 387.3 kB / 357 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.1191, allocations: 88.98 kB / 357.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.1192, allocations: 4 kB / 357.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1194, allocations: 16.02 kB / 357.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.1194, allocations: 7.922 kB / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1195, allocations: 4 kB / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.337e-05/0.1195, allocations: 103.3 kB / 357.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1195, allocations: 0 / 357.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003463/0.1199, allocations: 31.91 kB / 357.3 MB, free: 12.44 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.001009/0.1209, allocations: 0.9193 MB / 358.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003783/0.1213, allocations: 123.2 kB / 358.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1213, allocations: 0 / 358.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.716e-05/0.1214, allocations: 32.03 kB / 358.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.1219, allocations: 54.95 kB / 358.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.125, allocations: 2.101 MB / 360.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.1255, allocations: 0.7123 MB / 361.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.063e-05/0.1256, allocations: 13.09 kB / 361.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.027e-05/0.1257, allocations: 31.42 kB / 361.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1257, allocations: 0 / 361.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01436/0.1401, allocations: 2.509 MB / 363.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.1403, allocations: 245.1 kB / 364 MB, free: 5.602 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/1.982, allocations: 4 kB / 364 MB, free: 5.598 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches