Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 47.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1022, allocations: 53.34 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003727/0.1059, allocations: 2.045 MB / 428.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1072, allocations: 0.6154 MB / 429 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.1074, allocations: 3.938 kB / 429 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.1075, allocations: 19.8 kB / 429 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002144/0.1077, allocations: 31.72 kB / 429 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.108, allocations: 71.78 kB / 429.1 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.1083, allocations: 127.6 kB / 429.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.1084, allocations: 45.86 kB / 429.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.1085, allocations: 55.77 kB / 429.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1086, allocations: 55.72 kB / 429.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.1087, allocations: 8 kB / 429.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.591e-05/0.1087, allocations: 12 kB / 429.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.081e-05/0.1087, allocations: 31.91 kB / 429.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.637e-05/0.1088, allocations: 71.53 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.1091, allocations: 151.2 kB / 429.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1091, allocations: 0 / 429.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1091, allocations: 0 / 429.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1091, allocations: 4 kB / 429.6 MB, free: 1.445 MB / 350.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.0007134/0.1098, allocations: 462.7 kB / 430.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1098, allocations: 8.031 kB / 430.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.876e-05/0.1099, allocations: 46.73 kB / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.1099, allocations: 20.8 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.1103, allocations: 220.1 kB / 430.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1103, allocations: 12.38 kB / 430.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.1104, allocations: 16.38 kB / 430.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005874/0.1109, allocations: 260.9 kB / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.111, allocations: 0 / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.111, allocations: 8 kB / 430.7 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.111, allocations: 4 kB / 430.7 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000266/0.1113, allocations: 79.88 kB / 430.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.112, allocations: 0.6039 MB / 431.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.1124, allocations: 135.7 kB / 431.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.1126, allocations: 74.62 kB / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.1126, allocations: 8.125 kB / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.1126, allocations: 38.55 kB / 431.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.1126, allocations: 0 / 431.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005756/0.1132, allocations: 197.3 kB / 431.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1133, allocations: 110.8 kB / 431.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.1135, allocations: 154.2 kB / 432.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.1135, allocations: 29.7 kB / 432.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.387e-05/0.1136, allocations: 112.5 kB / 432.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.1136, allocations: 28.16 kB / 432.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.238e-05/0.1137, allocations: 37.7 kB / 432.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1138, allocations: 327 kB / 432.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1139, allocations: 35.97 kB / 432.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.1141, allocations: 141.6 kB / 432.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.1145, allocations: 189.5 kB / 432.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1145, allocations: 3.938 kB / 432.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004115/0.1149, allocations: 201.5 kB / 433.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1149, allocations: 8 kB / 433.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.1149, allocations: 7.984 kB / 433.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1149, allocations: 4 kB / 433.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.1151, allocations: 43.91 kB / 433.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.1151, allocations: 8 kB / 433.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.1152, allocations: 24.28 kB / 433.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.1152, allocations: 16 kB / 433.2 MB, free: 13.43 MB / 366.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.0001249/0.1154, allocations: 133.7 kB / 433.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.1155, allocations: 89.53 kB / 433.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.511e-05/0.1156, allocations: 20.7 kB / 433.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1156, allocations: 4 kB / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1156, allocations: 0 / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1156, allocations: 0 / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002938/0.1159, allocations: 221.5 kB / 433.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1159, allocations: 4 kB / 433.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.1161, allocations: 31.98 kB / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1161, allocations: 0 / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.1161, allocations: 11.98 kB / 433.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1161, allocations: 3.938 kB / 433.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1161, allocations: 0 / 433.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005712/0.1167, allocations: 385.6 kB / 434.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.559e-05/0.1168, allocations: 105 kB / 434.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.1168, allocations: 4 kB / 434.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.117, allocations: 11.94 kB / 434.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.117, allocations: 3.984 kB / 434.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.117, allocations: 4 kB / 434.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.1171, allocations: 128.1 kB / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1171, allocations: 0 / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.1174, allocations: 31.88 kB / 434.4 MB, free: 12.15 MB / 366.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.0009218/0.1184, allocations: 0.9291 MB / 435.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.1187, allocations: 115.8 kB / 435.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1187, allocations: 4.875 kB / 435.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1188, allocations: 27.98 kB / 435.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.1193, allocations: 66.17 kB / 435.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.122, allocations: 2.111 MB / 437.7 MB, free: 8.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.1224, allocations: 0.7201 MB / 438.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.496e-05/0.1224, allocations: 9.422 kB / 438.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.821e-05/0.1225, allocations: 39.42 kB / 438.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1225, allocations: 0 / 438.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.1521, allocations: 3 MB / 441.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.486/8.638, allocations: 3.781 kB / 441.4 MB, free: 5.09 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.28227735310793]