Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001591/0.001591, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001896/0.001896, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 62.33 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1342, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.005197/0.1395, allocations: 1.871 MB / 359.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1409, allocations: 0.491 MB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.1411, allocations: 0 / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.1414, allocations: 11.86 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.1416, allocations: 23.73 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.1419, allocations: 35.89 kB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00028/0.1422, allocations: 91.72 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.1424, allocations: 49.3 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.1425, allocations: 39.86 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1427, allocations: 43.78 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.1427, allocations: 8 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.846e-05/0.1427, allocations: 8 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.977e-05/0.1428, allocations: 23.91 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.454e-05/0.1429, allocations: 47.73 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.1431, allocations: 99.89 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.617e-06/0.1431, allocations: 0 / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1432, allocations: 4 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.1432, allocations: 4 kB / 360.4 MB, free: 11.12 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008806/0.1441, allocations: 403.3 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.454e-05/0.1441, allocations: 8.031 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.1442, allocations: 46.67 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.988e-05/0.1443, allocations: 12.75 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.1446, allocations: 192.2 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.1446, allocations: 4.562 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.275e-05/0.1447, allocations: 16.12 kB / 361.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000364/0.145, allocations: 126.3 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.1451, allocations: 0 / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.1451, allocations: 8 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.1451, allocations: 7.938 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002778/0.1454, allocations: 63.94 kB / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008416/0.1463, allocations: 0.5246 MB / 361.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.1465, allocations: 86.52 kB / 361.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.1466, allocations: 40.84 kB / 361.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.1467, allocations: 0 / 361.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.1467, allocations: 34.56 kB / 362 MB, free: 9.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1467, allocations: 0 / 362 MB, free: 9.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004952/0.1472, allocations: 125.5 kB / 362.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.1473, allocations: 51.41 kB / 362.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.1474, allocations: 129.8 kB / 362.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.1474, allocations: 25.7 kB / 362.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.418e-05/0.1475, allocations: 119.7 kB / 362.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.1476, allocations: 31.78 kB / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.1476, allocations: 25.72 kB / 362.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1478, allocations: 330.8 kB / 362.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1479, allocations: 27.98 kB / 362.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.1481, allocations: 68.25 kB / 362.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.1483, allocations: 100.2 kB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1484, allocations: 4 kB / 363 MB, free: 8.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003321/0.1487, allocations: 133.4 kB / 363.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.1487, allocations: 12.12 kB / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1488, allocations: 0 / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.1488, allocations: 4 kB / 363.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.149, allocations: 31.97 kB / 363.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.149, allocations: 0 / 363.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.864e-05/0.1491, allocations: 19.94 kB / 363.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.1491, allocations: 3.938 kB / 363.2 MB, free: 8.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001241/0.1492, allocations: 134.7 kB / 363.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.1493, allocations: 11.91 kB / 363.3 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.237e-05/0.1493, allocations: 12.38 kB / 363.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.1493, allocations: 0 / 363.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1494, allocations: 0 / 363.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.1494, allocations: 4 kB / 363.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000245/0.1496, allocations: 193.6 kB / 363.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.1497, allocations: 4 kB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.1498, allocations: 19.98 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1498, allocations: 0 / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1499, allocations: 0 / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1499, allocations: 4 kB / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1499, allocations: 0 / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004971/0.1504, allocations: 239.5 kB / 363.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.712e-05/0.1505, allocations: 89.05 kB / 363.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.244e-05/0.1505, allocations: 8 kB / 363.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.33e-05/0.1506, allocations: 4 kB / 363.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.957e-05/0.1507, allocations: 11.98 kB / 363.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.1507, allocations: 0 / 363.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.782e-05/0.1508, allocations: 102.2 kB / 364 MB, free: 7.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1508, allocations: 3.938 kB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.1511, allocations: 23.84 kB / 364 MB, free: 7.133 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0009502/0.1521, allocations: 0.7709 MB / 364.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003476/0.1525, allocations: 79.89 kB / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.1525, allocations: 0 / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.1526, allocations: 36.16 kB / 364.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006461/0.1532, allocations: 26.58 kB / 364.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00281/0.1561, allocations: 1.731 MB / 366.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.1566, allocations: 0.7002 MB / 367.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.603e-05/0.1566, allocations: 8.438 kB / 367.4 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.991e-05/0.1567, allocations: 31.42 kB / 367.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of SimCode: time 4.258e-06/0.1567, allocations: 0 / 367.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.1842, allocations: 2.323 MB / 369.7 MB, free: 1.363 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.212, allocations: 8 kB / 369.7 MB, free: 1.355 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_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_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches