Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001673/0.001673, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002353/0.002354, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.73 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1226, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003691/0.1263, allocations: 2.031 MB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1278, allocations: 0.6077 MB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.128, allocations: 0 / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.1282, allocations: 19.8 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.1284, allocations: 31.72 kB / 360.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.1289, allocations: 71.8 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002379/0.1291, allocations: 127.6 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1293, allocations: 61.83 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1294, allocations: 51.73 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1295, allocations: 63.69 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.711e-05/0.1296, allocations: 12 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.184e-05/0.1296, allocations: 12 kB / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.37e-05/0.1297, allocations: 31.86 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.262e-05/0.1298, allocations: 67.59 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.13, allocations: 139.8 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.13, allocations: 0 / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.13, allocations: 7.938 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.13, allocations: 0 / 360.9 MB, free: 10.68 MB / 302.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.0006273/0.1306, allocations: 454.8 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1307, allocations: 12.03 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.869e-05/0.1307, allocations: 50.67 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.1308, allocations: 20.66 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.131, allocations: 212 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.131, allocations: 16.31 kB / 361.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.1311, allocations: 16.38 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/0.1316, allocations: 254.7 kB / 361.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.1316, allocations: 4 kB / 361.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.1316, allocations: 4 kB / 361.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1316, allocations: 4 kB / 361.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.1319, allocations: 83.88 kB / 362 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006335/0.1325, allocations: 0.6037 MB / 362.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.1329, allocations: 143.7 kB / 362.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.133, allocations: 78.77 kB / 362.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1331, allocations: 4 kB / 362.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.1331, allocations: 42.55 kB / 362.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1331, allocations: 0 / 362.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005318/0.1336, allocations: 181.3 kB / 363 MB, free: 8.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.1337, allocations: 118.9 kB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.1339, allocations: 152.7 kB / 363.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.1339, allocations: 29.7 kB / 363.3 MB, free: 7.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.134, allocations: 116.4 kB / 363.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.134, allocations: 31.62 kB / 363.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.1341, allocations: 37.7 kB / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1342, allocations: 322.8 kB / 363.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1343, allocations: 44.34 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.1345, allocations: 137.6 kB / 364 MB, free: 7.203 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.1348, allocations: 185.7 kB / 364.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.1348, allocations: 7.938 kB / 364.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003845/0.1352, allocations: 201.3 kB / 364.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1352, allocations: 8 kB / 364.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1353, allocations: 4 kB / 364.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1353, allocations: 4 kB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1354, allocations: 47.91 kB / 364.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.1355, allocations: 4 kB / 364.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.1356, allocations: 23.83 kB / 364.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.1356, allocations: 8 kB / 364.5 MB, free: 6.664 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.0001158/0.1357, allocations: 149.8 kB / 364.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.1359, allocations: 89.53 kB / 364.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.226e-05/0.136, allocations: 20.7 kB / 364.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.136, allocations: 0 / 364.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.136, allocations: 4 kB / 364.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.136, allocations: 0 / 364.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.1363, allocations: 217.4 kB / 365 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1363, allocations: 0 / 365 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.1365, allocations: 35.92 kB / 365 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.1365, allocations: 8 kB / 365 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.1365, allocations: 7.984 kB / 365 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1365, allocations: 0 / 365 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.1365, allocations: 4 kB / 365 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.1371, allocations: 386 kB / 365.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.755e-05/0.1372, allocations: 101 kB / 365.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.1372, allocations: 4 kB / 365.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.1373, allocations: 11.98 kB / 365.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.1374, allocations: 7.938 kB / 365.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.1374, allocations: 4 kB / 365.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.349e-05/0.1375, allocations: 119.4 kB / 365.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1375, allocations: 0 / 365.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.1378, allocations: 35.91 kB / 365.7 MB, free: 5.383 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.0008271/0.1387, allocations: 0.9232 MB / 366.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.139, allocations: 131.7 kB / 366.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.139, allocations: 4 kB / 366.7 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.897e-05/0.1392, allocations: 24.92 kB / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005173/0.1397, allocations: 67.38 kB / 366.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.1422, allocations: 2.111 MB / 368.9 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.1426, allocations: 0.7162 MB / 369.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.137e-05/0.1426, allocations: 17.42 kB / 369.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.39e-05/0.1427, allocations: 43.42 kB / 369.7 MB, free: 1.102 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1427, allocations: 0 / 369.7 MB, free: 1.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1866/0.3293, allocations: 2.914 MB / 372.6 MB, free: 20.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.273, allocations: 5.5 kB / 372.6 MB, free: 20.6 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w