Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_0_0_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.001291/0.001291, allocations: 110.1 kB / 17.06 MB, free: 6.02 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.00144/0.00144, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 47.92 kB / 350.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3811, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003476/0.3847, allocations: 1.506 MB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3857, allocations: 0.5008 MB / 402.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.097e-05/0.3858, allocations: 0 / 402.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.386, allocations: 23.86 kB / 402.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.737e-05/0.3861, allocations: 3.938 kB / 402.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001918/0.3863, allocations: 43.89 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.3864, allocations: 51.84 kB / 402.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.3866, allocations: 23.94 kB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.3867, allocations: 31.89 kB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.515e-05/0.3868, allocations: 31.91 kB / 402.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.3868, allocations: 4 kB / 402.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.023e-05/0.3869, allocations: 15.94 kB / 402.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.667e-05/0.3869, allocations: 19.92 kB / 402.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.456e-05/0.387, allocations: 19.88 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.3872, allocations: 66.73 kB / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.3872, allocations: 4 kB / 402.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3872, allocations: 0 / 402.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3872, allocations: 4 kB / 402.5 MB, free: 6.457 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.0007216/0.3879, allocations: 383.1 kB / 402.9 MB, free: 6.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.388, allocations: 12.03 kB / 402.9 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.3881, allocations: 38.73 kB / 403 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.3881, allocations: 8.891 kB / 403 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.3883, allocations: 168.3 kB / 403.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.3883, allocations: 384 / 403.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.3884, allocations: 8.375 kB / 403.2 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003047/0.3887, allocations: 97.64 kB / 403.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3887, allocations: 0 / 403.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.3887, allocations: 0 / 403.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.3887, allocations: 4 kB / 403.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003324/0.3891, allocations: 79.89 kB / 403.3 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.3896, allocations: 320.6 kB / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.3898, allocations: 70.53 kB / 403.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.39, allocations: 48.94 kB / 403.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.3901, allocations: 7.938 kB / 403.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.3901, allocations: 34.56 kB / 403.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.3901, allocations: 0 / 403.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006348/0.3907, allocations: 149.6 kB / 403.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.3908, allocations: 55.41 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.248e-05/0.3909, allocations: 117.8 kB / 404.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.3909, allocations: 25.7 kB / 404.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.391, allocations: 88.14 kB / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.391, allocations: 19.78 kB / 404.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-05/0.3911, allocations: 17.72 kB / 404.3 MB, free: 4.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3912, allocations: 322.8 kB / 404.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.3913, allocations: 39.95 kB / 404.6 MB, free: 4.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.3915, allocations: 39.95 kB / 404.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000291/0.3918, allocations: 72.8 kB / 404.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3918, allocations: 0 / 404.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003524/0.3922, allocations: 121.5 kB / 404.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3922, allocations: 4 kB / 404.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.3922, allocations: 0 / 404.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3922, allocations: 384 / 404.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3924, allocations: 15.98 kB / 404.9 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.3924, allocations: 4 kB / 404.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.741e-05/0.3925, allocations: 15.97 kB / 404.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.3925, allocations: 11.88 kB / 404.9 MB, free: 3.871 MB / 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.972e-05/0.3926, allocations: 109.8 kB / 405 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.3927, allocations: 7.953 kB / 405 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004327/0.3931, allocations: 129.5 kB / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3931, allocations: 7.984 kB / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3931, allocations: 0 / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3931, allocations: 0 / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.3933, allocations: 189.6 kB / 405.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3934, allocations: 448 / 405.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.3935, allocations: 27.97 kB / 405.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3935, allocations: 0 / 405.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.3935, allocations: 4 kB / 405.4 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3935, allocations: 0 / 405.4 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3935, allocations: 4.016 kB / 405.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.3939, allocations: 227.3 kB / 405.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.394, allocations: 85.05 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.394, allocations: 4 kB / 405.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.3941, allocations: 11.98 kB / 405.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.3942, allocations: 11.98 kB / 405.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.3942, allocations: 0 / 405.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.482e-05/0.3943, allocations: 91.22 kB / 405.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3943, allocations: 0 / 405.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.3945, allocations: 16 kB / 405.8 MB, free: 2.859 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.0007571/0.3953, allocations: 0.763 MB / 406.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003874/0.3957, allocations: 87.91 kB / 406.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3957, allocations: 0 / 406.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.3959, allocations: 51.89 kB / 406.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.3963, allocations: 8 kB / 406.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006724/0.397, allocations: 183.9 kB / 406.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.3973, allocations: 0.6961 MB / 407.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.938e-05/0.3973, allocations: 4 kB / 407.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.3974, allocations: 27.36 kB / 407.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3974, allocations: 0 / 407.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.4201, allocations: 2.028 MB / 409.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.346/8.766, allocations: 16.53 kB / 409.7 MB, free: 15 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches