Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 113.9 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 55.92 kB / 328 MB, free: 3.844 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09788, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002803/0.1007, allocations: 1.492 MB / 376.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009256/0.1017, allocations: 0.5429 MB / 376.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.154e-05/0.1017, allocations: 0 / 376.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.1019, allocations: 27.8 kB / 376.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.25e-05/0.1019, allocations: 7.922 kB / 376.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.1021, allocations: 35.91 kB / 376.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.1022, allocations: 55.84 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.1024, allocations: 27.97 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1025, allocations: 23.92 kB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.927e-05/0.1026, allocations: 31.84 kB / 376.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.1026, allocations: 4 kB / 376.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.089e-05/0.1026, allocations: 19.94 kB / 376.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.1027, allocations: 15.92 kB / 376.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.706e-05/0.1027, allocations: 23.88 kB / 376.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.1029, allocations: 71.72 kB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1029, allocations: 0 / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1029, allocations: 0 / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.1029, allocations: 4 kB / 377 MB, free: 2.715 MB / 318.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.0006467/0.1036, allocations: 387.2 kB / 377.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.1036, allocations: 12.02 kB / 377.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.181e-05/0.1036, allocations: 34.69 kB / 377.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.1037, allocations: 8.891 kB / 377.4 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.1038, allocations: 172.3 kB / 377.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.1039, allocations: 4.375 kB / 377.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.1039, allocations: 8.375 kB / 377.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.1042, allocations: 89.7 kB / 377.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1042, allocations: 7.922 kB / 377.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.1042, allocations: 0 / 377.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1042, allocations: 4 kB / 377.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.1045, allocations: 87.91 kB / 377.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.105, allocations: 296.9 kB / 378.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.1052, allocations: 74.47 kB / 378.2 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.1054, allocations: 52.94 kB / 378.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.1054, allocations: 0 / 378.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.1054, allocations: 30.56 kB / 378.2 MB, free: 1.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.21e-07/0.1055, allocations: 0 / 378.2 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.000569/0.106, allocations: 153.5 kB / 378.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.1061, allocations: 55.41 kB / 378.4 MB, free: 1.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.622e-05/0.1062, allocations: 109.8 kB / 378.5 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1062, allocations: 25.7 kB / 378.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.067e-05/0.1063, allocations: 96.03 kB / 378.7 MB, free: 0.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.1063, allocations: 15.89 kB / 378.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.1064, allocations: 17.72 kB / 378.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1065, allocations: 322.8 kB / 379 MB, free: 480 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.1067, allocations: 39.97 kB / 379.1 MB, free: 440 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.1068, allocations: 39.89 kB / 379.1 MB, free: 400 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.1071, allocations: 85.16 kB / 379.2 MB, free: 312 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1071, allocations: 0 / 379.2 MB, free: 312 kB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003435/0.1075, allocations: 117.5 kB / 379.3 MB, free: 188 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1075, allocations: 4 kB / 379.3 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1075, allocations: 0 / 379.3 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1075, allocations: 0 / 379.3 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.1077, allocations: 19.98 kB / 379.3 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.1077, allocations: 7.984 kB / 379.3 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.255e-05/0.1078, allocations: 12.36 kB / 379.3 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.1078, allocations: 7.938 kB / 379.3 MB, free: 136 kB / 318.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 8.682e-05/0.1079, allocations: 117.7 kB / 379.5 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.1079, allocations: 7.953 kB / 379.5 MB, free: 0 / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005255/0.2791, allocations: 125.4 kB / 379.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2791, allocations: 2.344 kB / 379.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2792, allocations: 3.656 kB / 379.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2792, allocations: 0.7031 kB / 379.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.2794, allocations: 192.5 kB / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2794, allocations: 1.094 kB / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.2795, allocations: 24.12 kB / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2795, allocations: 1.281 kB / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.2795, allocations: 3.312 kB / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.2796, allocations: 2.953 kB / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2796, allocations: 0 / 379.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.28, allocations: 220 kB / 380 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.392e-05/0.28, allocations: 80.47 kB / 380.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.28, allocations: 4.406 kB / 380.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.2801, allocations: 11.28 kB / 380.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.2802, allocations: 11.38 kB / 380.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-06/0.2802, allocations: 5.531 kB / 380.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.016e-05/0.2803, allocations: 91.84 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2803, allocations: 0 / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.2805, allocations: 15.81 kB / 380.2 MB, free: 12.49 MB / 318.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.0006145/0.2811, allocations: 0.7546 MB / 381 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003896/0.2815, allocations: 88.02 kB / 381.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.2815, allocations: 0 / 381.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.2817, allocations: 50.94 kB / 381.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.2821, allocations: 8.547 kB / 381.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000509/0.2826, allocations: 204.3 kB / 381.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.2827, allocations: 0.686 MB / 382 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.375e-05/0.2828, allocations: 3.359 kB / 382 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.694e-05/0.2829, allocations: 20.44 kB / 382 MB, free: 10.97 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2829, allocations: 0 / 382 MB, free: 10.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.3056, allocations: 2.035 MB / 384.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.589, allocations: 4.953 kB / 384.1 MB, free: 10.46 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches