Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.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.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, 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.001679/0.001679, 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.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.67 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 50.53 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003291/0.1093, allocations: 1.507 MB / 359.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009312/0.1103, allocations: 0.5353 MB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.373e-05/0.1104, allocations: 0 / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1105, allocations: 23.86 kB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.229e-05/0.1106, allocations: 3.938 kB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.1108, allocations: 35.91 kB / 359.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.212e-05/0.1109, allocations: 67.77 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.111, allocations: 19.98 kB / 359.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.1112, allocations: 31.91 kB / 359.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.179e-05/0.1113, allocations: 27.86 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.1113, allocations: 7.984 kB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.785e-05/0.1114, allocations: 31.92 kB / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.63e-05/0.1114, allocations: 4 kB / 359.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.766e-05/0.1114, allocations: 27.86 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.1116, allocations: 63.78 kB / 360 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1116, allocations: 0 / 360 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1116, allocations: 4 kB / 360 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1116, allocations: 4 kB / 360 MB, free: 11.64 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006293/0.1123, allocations: 379.6 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.1123, allocations: 15.97 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.955e-05/0.1124, allocations: 34.75 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.1124, allocations: 12.83 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1125, allocations: 176.2 kB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1125, allocations: 384 / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.1126, allocations: 8.375 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.1129, allocations: 85.77 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.1129, allocations: 0 / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.1129, allocations: 4 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1129, allocations: 4 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003296/0.1132, allocations: 79.84 kB / 360.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.1137, allocations: 304.8 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.1139, allocations: 74.56 kB / 361.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.1141, allocations: 52.95 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.1142, allocations: 11.91 kB / 361.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.1142, allocations: 34.56 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.1142, allocations: 0 / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005898/0.1148, allocations: 149.5 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.1148, allocations: 59.33 kB / 361.4 MB, free: 10 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.007e-05/0.1149, allocations: 109.8 kB / 361.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.1149, allocations: 25.7 kB / 361.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.593e-05/0.115, allocations: 95.98 kB / 361.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.115, allocations: 12.19 kB / 361.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.1151, allocations: 21.7 kB / 361.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.356e-05/0.1152, allocations: 322.8 kB / 362 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.1153, allocations: 39.95 kB / 362 MB, free: 9.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1155, allocations: 35.91 kB / 362.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.1158, allocations: 84.78 kB / 362.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1158, allocations: 0 / 362.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003478/0.1162, allocations: 113.6 kB / 362.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.1162, allocations: 7.984 kB / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1162, allocations: 0 / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.1162, allocations: 0 / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.1164, allocations: 15.98 kB / 362.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1164, allocations: 8 kB / 362.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.51e-05/0.1165, allocations: 15.83 kB / 362.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.1165, allocations: 7.938 kB / 362.3 MB, free: 9.059 MB / 302.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 (5): * Single equations (assignments): 5 * 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 7.767e-05/0.1166, allocations: 118.9 kB / 362.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.1166, allocations: 4 kB / 362.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004047/0.117, allocations: 133.5 kB / 362.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.117, allocations: 0 / 362.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.117, allocations: 0 / 362.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.117, allocations: 3.984 kB / 362.6 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.1172, allocations: 186 kB / 362.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1172, allocations: 0 / 362.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.1174, allocations: 23.98 kB / 362.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1174, allocations: 0 / 362.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.1174, allocations: 4 kB / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.1174, allocations: 7.984 kB / 362.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1174, allocations: 3.938 kB / 362.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.1178, allocations: 219.3 kB / 363 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.1178, allocations: 81.02 kB / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.851e-05/0.1179, allocations: 11.92 kB / 363.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.118, allocations: 15.98 kB / 363.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.118, allocations: 4 kB / 363.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.118, allocations: 0 / 363.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.723e-05/0.1181, allocations: 95.2 kB / 363.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1181, allocations: 0 / 363.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.1183, allocations: 12 kB / 363.2 MB, free: 8.051 MB / 302.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 (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.0006826/0.119, allocations: 0.7517 MB / 364 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003674/0.1194, allocations: 104 kB / 364.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1194, allocations: 0 / 364.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.1196, allocations: 51.89 kB / 364.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.1199, allocations: 11.98 kB / 364.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004781/0.1204, allocations: 187.6 kB / 364.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.1206, allocations: 0.6885 MB / 365 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.303e-05/0.1207, allocations: 4 kB / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.388e-05/0.1207, allocations: 23.42 kB / 365 MB, free: 6.145 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1207, allocations: 4 kB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.1382, allocations: 1.965 MB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.832/7.97, allocations: 11.56 kB / 367 MB, free: 4.234 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches