Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.000921/0.0009211, allocations: 93.78 kB / 16.65 MB, free: 6.535 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.001124/0.001124, allocations: 174.6 kB / 17.56 MB, free: 6.184 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.418/1.418, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003201/0.0003198, allocations: 12 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1096, allocations: 50.4 MB / 351.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002689/0.1123, allocations: 1.706 MB / 353.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.1134, allocations: 498.7 kB / 354.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.1136, allocations: 4 kB / 354.1 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.1137, allocations: 7.922 kB / 354.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1138, allocations: 19.8 kB / 354.2 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.1143, allocations: 43.95 kB / 354.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.1145, allocations: 115.6 kB / 354.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.1147, allocations: 52.94 kB / 354.4 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1148, allocations: 35.8 kB / 354.4 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.913e-05/0.1149, allocations: 47.7 kB / 354.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.1149, allocations: 4 kB / 354.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2e-05/0.115, allocations: 8 kB / 354.5 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.817e-05/0.115, allocations: 19.92 kB / 354.5 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.1151, allocations: 77.38 kB / 354.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.1153, allocations: 115.8 kB / 354.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1153, allocations: 0 / 354.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1153, allocations: 0 / 354.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1153, allocations: 0 / 354.7 MB, free: 0.8477 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007127/0.116, allocations: 411.2 kB / 355.1 MB, free: 408 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.1161, allocations: 12.03 kB / 355.1 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.348e-05/0.1162, allocations: 46.73 kB / 355.1 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.334e-05/0.1163, allocations: 16.69 kB / 355.1 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.1165, allocations: 213.3 kB / 355.3 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.1166, allocations: 8.375 kB / 355.4 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.548e-05/0.1166, allocations: 12.38 kB / 355.4 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.1172, allocations: 242.7 kB / 355.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1172, allocations: 3.906 kB / 355.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.1173, allocations: 8 kB / 355.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1173, allocations: 4 kB / 355.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/0.1176, allocations: 91.88 kB / 355.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007503/0.1183, allocations: 0.5998 MB / 356.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.1187, allocations: 151.9 kB / 356.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.1188, allocations: 78.62 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.1189, allocations: 8 kB / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.1189, allocations: 38.5 kB / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1189, allocations: 0 / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005495/0.1195, allocations: 197.3 kB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.1196, allocations: 110.8 kB / 356.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.1197, allocations: 130.1 kB / 357 MB, free: 14.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.1197, allocations: 29.69 kB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.203e-05/0.1198, allocations: 112 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.1198, allocations: 35.64 kB / 357.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.1199, allocations: 21.7 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.12, allocations: 322.8 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.1202, allocations: 39.97 kB / 357.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.1203, allocations: 138.2 kB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.1207, allocations: 196.7 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1207, allocations: 0 / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004175/0.1211, allocations: 201.2 kB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1211, allocations: 4 kB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.1212, allocations: 7.938 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.1212, allocations: 4 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.1214, allocations: 47.91 kB / 358.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.1214, allocations: 7.938 kB / 358.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1215, allocations: 28.25 kB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.1215, allocations: 8 kB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001329/0.1217, allocations: 137.7 kB / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1218, allocations: 85.84 kB / 358.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.1219, allocations: 16.66 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1219, allocations: 4 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1219, allocations: 0 / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.1219, allocations: 0 / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.1222, allocations: 209.5 kB / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1223, allocations: 0 / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.1224, allocations: 39.97 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1225, allocations: 0 / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.1225, allocations: 11.88 kB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1225, allocations: 0 / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1225, allocations: 0 / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005644/0.1231, allocations: 387 kB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.1231, allocations: 93.02 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.1232, allocations: 11.92 kB / 359.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.1233, allocations: 8 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.1233, allocations: 7.984 kB / 359.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.1234, allocations: 7.938 kB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.921e-05/0.1234, allocations: 95.27 kB / 359.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1234, allocations: 0 / 359.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.1238, allocations: 27.91 kB / 359.3 MB, free: 11.7 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 (14): * Single equations (assignments): 14 * 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.0008504/0.1246, allocations: 0.9271 MB / 360.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.125, allocations: 128.8 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.125, allocations: 0 / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.1251, allocations: 39.91 kB / 360.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005078/0.1256, allocations: 56.45 kB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.1279, allocations: 2.136 MB / 362.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.1283, allocations: 0.7162 MB / 363.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.887e-05/0.1284, allocations: 12.64 kB / 363.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.966e-05/0.1284, allocations: 31.42 kB / 363.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1284, allocations: 3.938 kB / 363.4 MB, free: 7.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01291/0.1414, allocations: 2.407 MB / 365.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/0.1416, allocations: 245.6 kB / 366 MB, free: 4.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.088, allocations: 0 / 366 MB, free: 4.977 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches