Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001822/0.001822, allocations: 113 kB / 18.49 MB, free: 4.539 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.001938/0.001938, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.537/1.537, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 55.91 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1196, allocations: 53.33 MB / 427 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003835/0.1235, allocations: 2.025 MB / 429 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1247, allocations: 0.5648 MB / 429.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.1249, allocations: 4 kB / 429.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.125, allocations: 15.8 kB / 429.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.1252, allocations: 39.64 kB / 429.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.1255, allocations: 59.81 kB / 429.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.1257, allocations: 123.6 kB / 429.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.1259, allocations: 37.42 kB / 429.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.126, allocations: 59.78 kB / 429.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.1261, allocations: 51.72 kB / 430 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.1261, allocations: 12 kB / 430 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.134e-05/0.1261, allocations: 8 kB / 430 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.18e-05/0.1262, allocations: 35.89 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.817e-05/0.1263, allocations: 59.67 kB / 430.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.1265, allocations: 123.4 kB / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1265, allocations: 0 / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1265, allocations: 0 / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1265, allocations: 0 / 430.2 MB, free: 1.594 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007021/0.1272, allocations: 442.9 kB / 430.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.1272, allocations: 8.031 kB / 430.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.771e-05/0.1273, allocations: 4.188 kB / 430.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.1273, allocations: 42.75 kB / 430.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.1274, allocations: 24.77 kB / 430.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1277, allocations: 212.1 kB / 430.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1277, allocations: 12.38 kB / 430.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.1277, allocations: 16.38 kB / 431 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005577/0.1283, allocations: 257.8 kB / 431.2 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1283, allocations: 0 / 431.2 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.1283, allocations: 4 kB / 431.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.1283, allocations: 4 kB / 431.2 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.1286, allocations: 83.88 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007891/0.1294, allocations: 0.5999 MB / 431.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.1298, allocations: 139.9 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.1299, allocations: 74.64 kB / 432.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.13, allocations: 3.984 kB / 432.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.13, allocations: 34.56 kB / 432.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.13, allocations: 0 / 432.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005839/0.1306, allocations: 193.4 kB / 432.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.1307, allocations: 111 kB / 432.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.1308, allocations: 140.1 kB / 432.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.1309, allocations: 25.7 kB / 432.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.121e-05/0.131, allocations: 115.9 kB / 432.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.131, allocations: 23.84 kB / 432.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.135e-05/0.1311, allocations: 33.72 kB / 432.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1312, allocations: 322.9 kB / 433.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.1313, allocations: 35.97 kB / 433.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.1315, allocations: 145.6 kB / 433.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003497/0.1319, allocations: 189.4 kB / 433.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1319, allocations: 0 / 433.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004266/0.1323, allocations: 193.3 kB / 433.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1323, allocations: 8 kB / 433.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1323, allocations: 4 kB / 433.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.1324, allocations: 4.234 kB / 433.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.1325, allocations: 51.91 kB / 433.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1326, allocations: 4 kB / 433.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.1327, allocations: 16.28 kB / 433.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.1327, allocations: 19.94 kB / 433.7 MB, free: 13.65 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.0001291/0.1328, allocations: 133.7 kB / 433.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.133, allocations: 93.56 kB / 434 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.898e-05/0.1331, allocations: 16.7 kB / 434 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1331, allocations: 4 kB / 434 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1331, allocations: 0 / 434 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.1331, allocations: 0 / 434 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003194/0.1334, allocations: 209.5 kB / 434.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1334, allocations: 0 / 434.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001936/0.1336, allocations: 43.91 kB / 434.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.1336, allocations: 0 / 434.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.1336, allocations: 4.469 kB / 434.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1336, allocations: 4 kB / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1336, allocations: 0 / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006766/0.1343, allocations: 393.5 kB / 434.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.436e-05/0.1344, allocations: 92.98 kB / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.1344, allocations: 0 / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.1346, allocations: 11.98 kB / 434.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.1346, allocations: 4 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1346, allocations: 8 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.219e-05/0.1347, allocations: 101.4 kB / 434.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1347, allocations: 4.062 kB / 434.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003419/0.135, allocations: 24 kB / 434.9 MB, free: 12.42 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.0009426/0.136, allocations: 0.9193 MB / 435.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003958/0.1364, allocations: 119.8 kB / 435.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1364, allocations: 0.9375 kB / 435.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.1365, allocations: 27.98 kB / 435.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.137, allocations: 55.92 kB / 436 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.1401, allocations: 2.058 MB / 438 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.1405, allocations: 0.7161 MB / 438.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.425e-05/0.1406, allocations: 13.08 kB / 438.8 MB, free: 8.285 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.952e-05/0.1406, allocations: 35.42 kB / 438.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1406, allocations: 4 kB / 438.8 MB, free: 8.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.1659, allocations: 2.843 MB / 441.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.477/8.643, allocations: 8.062 kB / 441.7 MB, free: 5.57 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.530933686997741]