Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_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.001536/0.001537, 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.001877/0.001878, 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.331/1.331, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2812/0.2812, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 83.14 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1042, allocations: 62.44 MB / 480.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.004482/0.1087, allocations: 3.332 MB / 483.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002651/0.1114, allocations: 1.602 MB / 485.1 MB, free: 280 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.1117, allocations: 19.88 kB / 485.1 MB, free: 260 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004467/0.1121, allocations: 142.7 kB / 485.2 MB, free: 116 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00043/0.1126, allocations: 186.6 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1137, allocations: 0.5495 MB / 485.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008175/0.1145, allocations: 0.8968 MB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.1148, allocations: 230.4 kB / 487.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004463/0.1153, allocations: 362.5 kB / 487.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004299/0.1157, allocations: 394.1 kB / 487.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1159, allocations: 64 kB / 487.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.116, allocations: 64 kB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.1162, allocations: 207.2 kB / 488.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002742/0.1165, allocations: 345.8 kB / 488.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.1172, allocations: 0.7473 MB / 489.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.1172, allocations: 4 kB / 489.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1172, allocations: 0 / 489.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1172, allocations: 0 / 489.2 MB, free: 12.08 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002245/0.1194, allocations: 1.152 MB / 490.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1195, allocations: 13.11 kB / 490.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.432e-05/0.1196, allocations: 86.7 kB / 490.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.1198, allocations: 95.89 kB / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008079/0.1206, allocations: 0.5584 MB / 491.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.1207, allocations: 41.38 kB / 491.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.032e-05/0.1208, allocations: 56.28 kB / 491.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.1219, allocations: 0.6222 MB / 491.8 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.1219, allocations: 4 kB / 491.8 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/0.1219, allocations: 24 kB / 491.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.122, allocations: 8 kB / 491.9 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1231, allocations: 469.7 kB / 492.3 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003702/0.1268, allocations: 2.667 MB / 495 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.128, allocations: 0.5452 MB / 495.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005689/0.1286, allocations: 254.4 kB / 495.8 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.1286, allocations: 7.938 kB / 495.8 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.149e-05/0.1287, allocations: 46.59 kB / 495.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.615e-06/0.1287, allocations: 0 / 495.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002618/0.1313, allocations: 1.124 MB / 497 MB, free: 4.023 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/0.1314, allocations: 170.1 kB / 497.1 MB, free: 3.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008412/0.1322, allocations: 0.6568 MB / 497.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.276e-05/0.1323, allocations: 33.7 kB / 497.8 MB, free: 3.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002629/0.1326, allocations: 360 kB / 498.2 MB, free: 2.754 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.1327, allocations: 169.5 kB / 498.4 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.1329, allocations: 118.2 kB / 498.5 MB, free: 2.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.133, allocations: 333.9 kB / 498.8 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00064/0.1337, allocations: 275.3 kB / 499.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007946/0.1345, allocations: 432.5 kB / 499.5 MB, free: 1.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.1359, allocations: 0.6749 MB / 0.4884 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1359, allocations: 0 / 0.4884 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001699/0.1376, allocations: 0.7978 MB / 0.4892 GB, free: 15.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.1377, allocations: 14.44 kB / 0.4892 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1377, allocations: 4 kB / 0.4892 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.1377, allocations: 8 kB / 0.4892 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006958/0.1384, allocations: 152.2 kB / 0.4894 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.1384, allocations: 11.94 kB / 0.4894 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.139, allocations: 75.62 kB / 0.4895 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.139, allocations: 24 kB / 0.4895 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007556/0.1398, allocations: 413.5 kB / 0.4899 GB, free: 15.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006863/0.1405, allocations: 421.2 kB / 0.4903 GB, free: 14.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00125/0.1418, allocations: 0.6493 MB / 0.4909 GB, free: 13.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.841e-06/0.1418, allocations: 8 kB / 0.4909 GB, free: 13.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001518/0.1433, allocations: 0.7723 MB / 0.4917 GB, free: 13.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.1433, allocations: 8 kB / 0.4917 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1433, allocations: 4 kB / 0.4917 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.1433, allocations: 8.531 kB / 0.4917 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.144, allocations: 147.7 kB / 0.4918 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.144, allocations: 15.92 kB / 0.4919 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005205/0.1445, allocations: 75.55 kB / 0.4919 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.1446, allocations: 24 kB / 0.492 GB, free: 12.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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.0001799/0.1448, allocations: 228 kB / 0.4922 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.1449, allocations: 79.05 kB / 0.4922 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001769/0.1451, allocations: 86.22 kB / 0.4923 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.1451, allocations: 7.938 kB / 0.4923 GB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1451, allocations: 7.938 kB / 0.4923 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.1451, allocations: 3.984 kB / 0.4923 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.1464, allocations: 0.8454 MB / 0.4932 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1464, allocations: 11.88 kB / 0.4932 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006775/0.1471, allocations: 103.9 kB / 0.4933 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.1471, allocations: 4 kB / 0.4933 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.1472, allocations: 15.98 kB / 0.4933 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.04e-05/0.1472, allocations: 8 kB / 0.4933 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1472, allocations: 3.938 kB / 0.4933 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/0.1493, allocations: 1.132 MB / 0.4944 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.1496, allocations: 196.1 kB / 0.4946 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.44e-05/0.1497, allocations: 19.98 kB / 0.4946 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00056/0.1502, allocations: 43.95 kB / 0.4947 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1504, allocations: 39.94 kB / 0.4947 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.1504, allocations: 16 kB / 0.4947 GB, free: 9.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006631/0.1511, allocations: 455 kB / 0.4952 GB, free: 9.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1511, allocations: 4 kB / 0.4952 GB, free: 9.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000787/0.1519, allocations: 196 kB / 0.4953 GB, free: 9.316 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.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 (44): * Single equations (assignments): 44 * 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.002348/0.1542, allocations: 1.69 MB / 0.497 GB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.1565, allocations: 0.9935 MB / 0.498 GB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1565, allocations: 4 kB / 0.498 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006253/0.1571, allocations: 276.2 kB / 0.4982 GB, free: 6.332 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.1583, allocations: 182.4 kB / 0.4984 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1879/0.3462, allocations: 6.874 MB / 0.5051 GB, free: 40.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.3466, allocations: 0.9532 MB / 0.5061 GB, free: 39.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006346/0.3473, allocations: 149.4 kB / 0.5062 GB, free: 39.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003274/0.3476, allocations: 257.9 kB / 0.5064 GB, free: 39.81 MB / 382.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3476, allocations: 0 / 0.5064 GB, free: 39.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03818/0.3858, allocations: 14.32 MB / 0.5204 GB, free: 35.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.534/7.919, allocations: 3.25 kB / 0.5204 GB, free: 35.86 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Blocks_Continuous.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches