Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.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.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001576/0.001576, 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.001653/0.001653, 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.395/1.395, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2008/0.2008, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 78.38 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003663/0.1178, allocations: 2.119 MB / 482.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002177/0.12, allocations: 1.371 MB / 483.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.1202, allocations: 4 kB / 483.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.202e-05/0.1203, allocations: 27.66 kB / 483.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1205, allocations: 39.7 kB / 483.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006472/0.1211, allocations: 187.3 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002622/0.1214, allocations: 180.1 kB / 484 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.1216, allocations: 95.59 kB / 484.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.1218, allocations: 95.58 kB / 484.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.122, allocations: 87.55 kB / 484.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.122, allocations: 16 kB / 484.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003639/0.1224, allocations: 147.9 kB / 484.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.308e-05/0.1224, allocations: 47.77 kB / 484.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.857e-05/0.1225, allocations: 103.4 kB / 484.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.123, allocations: 299.3 kB / 484.9 MB, free: 364 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.123, allocations: 0 / 484.9 MB, free: 364 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.123, allocations: 4 kB / 484.9 MB, free: 360 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1231, allocations: 0 / 484.9 MB, free: 360 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0006225/0.1237, allocations: 0.5189 MB / 485.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1237, allocations: 12.03 kB / 485.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.1239, allocations: 91.02 kB / 485.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009753/0.1248, allocations: 80.59 kB / 485.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.1251, allocations: 219.9 kB / 485.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.1252, allocations: 25.03 kB / 485.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.1252, allocations: 32.36 kB / 485.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003859/0.1256, allocations: 234.2 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1256, allocations: 3.938 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.1257, allocations: 12 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1257, allocations: 8 kB / 486.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.126, allocations: 162.5 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009103/0.1269, allocations: 0.6594 MB / 487 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.1274, allocations: 223.4 kB / 487.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.1275, allocations: 73.3 kB / 487.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.1276, allocations: 4.234 kB / 487.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.1276, allocations: 34.8 kB / 487.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.1276, allocations: 0 / 487.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004348/0.1281, allocations: 223.7 kB / 487.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1281, allocations: 59.34 kB / 487.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.272e-05/0.1282, allocations: 101.9 kB / 487.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.1282, allocations: 37.69 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.868e-05/0.1283, allocations: 148.3 kB / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.1284, allocations: 90.64 kB / 487.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-05/0.1284, allocations: 41.7 kB / 488 MB, free: 13.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1285, allocations: 326.8 kB / 488.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.517e-05/0.1286, allocations: 35.98 kB / 488.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.731e-05/0.1287, allocations: 47.95 kB / 488.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.1289, allocations: 122.2 kB / 488.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.129, allocations: 3.938 kB / 488.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002639/0.1292, allocations: 165.5 kB / 488.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1293, allocations: 10.5 kB / 488.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1293, allocations: 0 / 488.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.1293, allocations: 0 / 488.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003521/0.1296, allocations: 103.8 kB / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.1297, allocations: 3.984 kB / 488.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.866e-05/0.1297, allocations: 15.84 kB / 488.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.1298, allocations: 11.94 kB / 488.8 MB, free: 12.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (27): * Single equations (assignments): 27 * 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 9.871e-05/0.1299, allocations: 125.8 kB / 488.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/0.1299, allocations: 11.91 kB / 488.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.507e-05/0.13, allocations: 25.53 kB / 489 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.13, allocations: 7.938 kB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.13, allocations: 7.938 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.13, allocations: 3.984 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.1303, allocations: 285.3 kB / 489.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1303, allocations: 0 / 489.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.1306, allocations: 95.94 kB / 489.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1307, allocations: 0 / 489.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.1307, allocations: 8 kB / 489.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1307, allocations: 7.938 kB / 489.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1307, allocations: 0 / 489.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.131, allocations: 275.3 kB / 489.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.1311, allocations: 89.2 kB / 489.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.1311, allocations: 4 kB / 489.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.1312, allocations: 19.92 kB / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.1313, allocations: 15.98 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.1313, allocations: 8 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.037e-05/0.1314, allocations: 87.27 kB / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1314, allocations: 0 / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.1317, allocations: 51.75 kB / 489.9 MB, free: 11.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (27): * Single equations (assignments): 27 * 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.0006796/0.1323, allocations: 0.8689 MB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000336/0.1327, allocations: 148 kB / 490.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1327, allocations: 0 / 490.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.1328, allocations: 75.91 kB / 491 MB, free: 9.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.1331, allocations: 19.92 kB / 491 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.1353, allocations: 1.959 MB / 493 MB, free: 7.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.1356, allocations: 0.7436 MB / 493.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.1357, allocations: 25.39 kB / 493.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.447e-05/0.1358, allocations: 63.42 kB / 493.8 MB, free: 7.008 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1358, allocations: 0 / 493.8 MB, free: 7.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.1528, allocations: 2.673 MB / 496.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.475/7.628, allocations: 11.23 kB / 496.5 MB, free: 4.359 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_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_ConversionBlocks.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches