Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 124.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 198.8 kB / 20.73 MB, free: 2.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 55.91 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1463, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004036/0.1503, allocations: 2.065 MB / 419.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.1515, allocations: 0.5103 MB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1516, allocations: 11.88 kB / 420.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.1518, allocations: 15.8 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.146e-05/0.1519, allocations: 27.72 kB / 420.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.1522, allocations: 55.88 kB / 420.4 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.1524, allocations: 131.5 kB / 420.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.1526, allocations: 45.78 kB / 420.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.602e-05/0.1527, allocations: 51.86 kB / 420.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.1528, allocations: 63.64 kB / 420.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.1528, allocations: 8 kB / 420.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.615e-05/0.1528, allocations: 12 kB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.837e-05/0.1529, allocations: 23.92 kB / 420.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.765e-05/0.153, allocations: 59.66 kB / 420.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.1532, allocations: 135.3 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1532, allocations: 0 / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1532, allocations: 0 / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.1532, allocations: 0 / 421 MB, free: 9.41 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007653/0.154, allocations: 434.9 kB / 421.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.154, allocations: 19.83 kB / 421.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.467e-05/0.1541, allocations: 46.73 kB / 421.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.893e-05/0.1541, allocations: 16.84 kB / 421.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.1545, allocations: 208.1 kB / 421.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.1545, allocations: 12.31 kB / 421.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.1546, allocations: 16.36 kB / 421.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/0.1551, allocations: 234.8 kB / 421.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.1552, allocations: 7.922 kB / 421.9 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.1552, allocations: 4 kB / 421.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1552, allocations: 8 kB / 421.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.1554, allocations: 79.88 kB / 422 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007857/0.1562, allocations: 0.5922 MB / 422.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.1566, allocations: 135.9 kB / 422.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.1568, allocations: 78.52 kB / 422.8 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.1568, allocations: 7.984 kB / 422.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.1568, allocations: 30.56 kB / 422.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.1568, allocations: 4 kB / 422.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005641/0.1574, allocations: 189.4 kB / 423.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/0.1575, allocations: 110.8 kB / 423.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.1576, allocations: 136.2 kB / 423.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.1577, allocations: 25.7 kB / 423.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.992e-05/0.1577, allocations: 124 kB / 423.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.1578, allocations: 23.8 kB / 423.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.337e-05/0.1578, allocations: 37.7 kB / 423.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.158, allocations: 330.8 kB / 423.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.1581, allocations: 39.97 kB / 423.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.1583, allocations: 137.7 kB / 424 MB, free: 6.023 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004886/0.1588, allocations: 278.6 kB / 424.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.1588, allocations: 3.938 kB / 424.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004114/0.1592, allocations: 193.5 kB / 424.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.1592, allocations: 8 kB / 424.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1592, allocations: 4 kB / 424.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.1593, allocations: 8.031 kB / 424.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.1594, allocations: 48.38 kB / 424.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1594, allocations: 8 kB / 424.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.1596, allocations: 23.88 kB / 424.6 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1596, allocations: 8 kB / 424.6 MB, free: 5.379 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001519/0.1597, allocations: 137.7 kB / 424.7 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.1599, allocations: 89.53 kB / 424.8 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.887e-05/0.16, allocations: 20.7 kB / 424.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.16, allocations: 0 / 424.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.16, allocations: 4 kB / 424.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.16, allocations: 4 kB / 424.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003341/0.1603, allocations: 213.4 kB / 425 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1603, allocations: 4.469 kB / 425 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.1605, allocations: 47.89 kB / 425.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1606, allocations: 0 / 425.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.1606, allocations: 8 kB / 425.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1606, allocations: 0 / 425.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1606, allocations: 7.875 kB / 425.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006275/0.1612, allocations: 388.6 kB / 425.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.1613, allocations: 89.05 kB / 425.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.1613, allocations: 8 kB / 425.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.1614, allocations: 7.984 kB / 425.6 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.1615, allocations: 4.062 kB / 425.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.1615, allocations: 8 kB / 425.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.825e-05/0.1616, allocations: 105.5 kB / 425.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1616, allocations: 0 / 425.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.1619, allocations: 31.94 kB / 425.7 MB, free: 4.117 MB / 350.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.0009611/0.1629, allocations: 0.9221 MB / 426.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000395/0.1633, allocations: 124.6 kB / 426.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1633, allocations: 0 / 426.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1634, allocations: 27.97 kB / 426.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.1639, allocations: 67.86 kB / 426.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.1668, allocations: 2.097 MB / 429 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.1672, allocations: 0.7123 MB / 429.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.558e-05/0.1672, allocations: 13.08 kB / 429.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.842e-05/0.1673, allocations: 35.42 kB / 429.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.1673, allocations: 4 kB / 429.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.1958, allocations: 3.02 MB / 432.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.672/8.868, allocations: 14.14 kB / 432.8 MB, free: 13.05 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 11.696318828966469]