Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001473/0.001473, allocations: 101.9 kB / 16.5 MB, free: 6.688 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.001694/0.001694, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.442/1.442, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 46.39 kB / 300.1 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1098, allocations: 49.45 MB / 349.5 MB, free: 4.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004386/0.1142, allocations: 2.077 MB / 351.6 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.1154, allocations: 0.5532 MB / 352.1 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.1156, allocations: 7.938 kB / 352.1 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.1158, allocations: 11.92 kB / 352.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.116, allocations: 31.78 kB / 352.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.1164, allocations: 55.89 kB / 352.2 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.1167, allocations: 127.5 kB / 352.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.117, allocations: 53.39 kB / 352.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.1172, allocations: 55.72 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.1174, allocations: 55.7 kB / 352.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.325e-05/0.1174, allocations: 8 kB / 352.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.867e-05/0.1175, allocations: 8 kB / 352.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-05/0.1176, allocations: 23.91 kB / 352.6 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.1177, allocations: 67.61 kB / 352.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.118, allocations: 135.7 kB / 352.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.118, allocations: 0 / 352.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.118, allocations: 0 / 352.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.118, allocations: 4 kB / 352.8 MB, free: 1.414 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001004/0.119, allocations: 454.9 kB / 353.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/0.1191, allocations: 8.031 kB / 353.2 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.112e-05/0.1192, allocations: 42.75 kB / 353.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.1192, allocations: 20.66 kB / 353.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003464/0.1196, allocations: 219.9 kB / 353.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.1196, allocations: 16.36 kB / 353.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.1197, allocations: 16.38 kB / 353.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006051/0.1203, allocations: 258.7 kB / 353.8 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.1203, allocations: 8 kB / 353.8 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.1203, allocations: 4 kB / 353.8 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.1204, allocations: 7.938 kB / 353.8 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002658/0.1206, allocations: 83.86 kB / 353.9 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007889/0.1214, allocations: 0.5998 MB / 354.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.1218, allocations: 151.7 kB / 354.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.122, allocations: 74.62 kB / 354.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.122, allocations: 8.125 kB / 354.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.1221, allocations: 34.56 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.1221, allocations: 0 / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000637/0.1227, allocations: 189.3 kB / 354.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.1229, allocations: 114.8 kB / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.123, allocations: 150.2 kB / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1231, allocations: 25.7 kB / 355.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1232, allocations: 120.4 kB / 355.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.1233, allocations: 31.62 kB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.522e-05/0.1233, allocations: 37.84 kB / 355.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.1236, allocations: 326.8 kB / 355.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1237, allocations: 35.97 kB / 355.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.1239, allocations: 140.8 kB / 355.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.1242, allocations: 185.5 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.1242, allocations: 7.938 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004018/0.1246, allocations: 201 kB / 356.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1246, allocations: 4 kB / 356.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.1247, allocations: 4 kB / 356.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.1247, allocations: 4 kB / 356.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.1249, allocations: 43.92 kB / 356.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.721e-05/0.1249, allocations: 8.453 kB / 356.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.1251, allocations: 27.84 kB / 356.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1252, allocations: 15.94 kB / 356.4 MB, free: 13.4 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.0001912/0.1254, allocations: 142 kB / 356.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.1256, allocations: 93.47 kB / 356.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001719/0.1258, allocations: 20.7 kB / 356.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.1258, allocations: 4 kB / 356.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.1258, allocations: 0 / 356.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1258, allocations: 0 / 356.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.1262, allocations: 217.5 kB / 356.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1263, allocations: 0 / 356.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.1265, allocations: 35.97 kB / 356.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/0.1265, allocations: 4 kB / 356.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.1266, allocations: 4 kB / 356.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.1266, allocations: 3.938 kB / 356.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.066e-06/0.1266, allocations: 4 kB / 356.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007312/0.1273, allocations: 387.3 kB / 357.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1275, allocations: 97 kB / 357.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.1275, allocations: 0 / 357.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.1277, allocations: 11.98 kB / 357.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.1278, allocations: 7.984 kB / 357.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.1278, allocations: 8.297 kB / 357.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001259/0.1279, allocations: 120.1 kB / 357.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.285e-06/0.128, allocations: 0 / 357.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004974/0.1285, allocations: 39.78 kB / 357.6 MB, free: 12.12 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.001065/0.1295, allocations: 0.9309 MB / 358.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004332/0.13, allocations: 116.7 kB / 358.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.13, allocations: 4.125 kB / 358.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.1302, allocations: 31.91 kB / 358.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/0.1309, allocations: 64.27 kB / 358.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.1344, allocations: 2.157 MB / 360.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.1349, allocations: 0.7243 MB / 361.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.723e-05/0.135, allocations: 5.438 kB / 361.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.59e-05/0.1351, allocations: 39.42 kB / 361.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1352, allocations: 0 / 361.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.1529, allocations: 2.685 MB / 364.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003036/0.1532, allocations: 249.6 kB / 364.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.071, allocations: 0 / 364.5 MB, free: 5.047 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches