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.001401/0.001402, allocations: 112.9 kB / 17.07 MB, free: 5.988 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.00141/0.001411, allocations: 193.4 kB / 18 MB, free: 5.074 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.523/1.523, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 51.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3457, allocations: 49.42 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003722/0.3495, allocations: 1.522 MB / 401.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.3508, allocations: 0.4969 MB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.022e-05/0.3509, allocations: 0 / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.351, allocations: 19.88 kB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.3512, allocations: 11.86 kB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.3514, allocations: 35.92 kB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.3515, allocations: 51.89 kB / 402.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.3517, allocations: 31.92 kB / 402.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.3519, allocations: 27.86 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.942e-05/0.352, allocations: 27.91 kB / 402.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.352, allocations: 4 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.787e-05/0.3521, allocations: 12 kB / 402.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.993e-05/0.3521, allocations: 23.91 kB / 402.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.775e-05/0.3522, allocations: 23.86 kB / 402.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.3524, allocations: 70.67 kB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.3524, allocations: 4 kB / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3524, allocations: 0 / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.3524, allocations: 0 / 402.5 MB, free: 6.492 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.0008632/0.3533, allocations: 383.2 kB / 402.9 MB, free: 6.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.3534, allocations: 12.03 kB / 402.9 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.607e-05/0.3534, allocations: 34.75 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.3535, allocations: 8.891 kB / 403 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.3536, allocations: 172.3 kB / 403.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.3537, allocations: 4.375 kB / 403.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.3537, allocations: 16.23 kB / 403.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.354, allocations: 89.77 kB / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.354, allocations: 0 / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3541, allocations: 0 / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.3541, allocations: 4 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003568/0.3544, allocations: 71.92 kB / 403.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.355, allocations: 320.6 kB / 403.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.3553, allocations: 70.53 kB / 403.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.3555, allocations: 44.95 kB / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.3555, allocations: 7.938 kB / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.3556, allocations: 34.59 kB / 403.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 2.464e-06/0.3556, allocations: 0 / 403.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006765/0.3563, allocations: 145.6 kB / 403.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/0.3564, allocations: 55.41 kB / 404 MB, free: 4.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.3565, allocations: 117.8 kB / 404.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3565, allocations: 25.7 kB / 404.1 MB, free: 4.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.161e-05/0.3566, allocations: 96.11 kB / 404.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.3567, allocations: 19.8 kB / 404.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.3567, allocations: 17.7 kB / 404.3 MB, free: 4.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3569, allocations: 322.8 kB / 404.6 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.3571, allocations: 39.95 kB / 404.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.3573, allocations: 39.91 kB / 404.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.3576, allocations: 77.16 kB / 404.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3576, allocations: 4 kB / 404.7 MB, free: 4.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003708/0.358, allocations: 113.6 kB / 404.8 MB, free: 3.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.358, allocations: 4 kB / 404.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.358, allocations: 384 / 404.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.358, allocations: 0 / 404.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.3582, allocations: 19.97 kB / 404.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3582, allocations: 4 kB / 404.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.494e-05/0.3583, allocations: 19.92 kB / 404.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.3583, allocations: 7.938 kB / 404.9 MB, free: 3.906 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 0.0001099/0.3584, allocations: 109.8 kB / 405 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.554e-05/0.3585, allocations: 11.95 kB / 405 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/0.359, allocations: 125.6 kB / 405.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.359, allocations: 4 kB / 405.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.359, allocations: 0 / 405.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.359, allocations: 0 / 405.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.3593, allocations: 193.6 kB / 405.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3593, allocations: 0 / 405.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.3594, allocations: 19.98 kB / 405.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3594, allocations: 3.938 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3594, allocations: 0 / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3594, allocations: 0 / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3594, allocations: 3.938 kB / 405.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004646/0.3599, allocations: 231.3 kB / 405.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.248e-05/0.36, allocations: 81.06 kB / 405.7 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.36, allocations: 4 kB / 405.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3601, allocations: 7.984 kB / 405.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.3602, allocations: 15.98 kB / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.3602, allocations: 0 / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.65e-05/0.3602, allocations: 95.2 kB / 405.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3602, allocations: 0 / 405.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.3605, allocations: 12 kB / 405.8 MB, free: 2.902 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.0008333/0.3613, allocations: 0.7592 MB / 406.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000419/0.3617, allocations: 87.97 kB / 406.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3618, allocations: 4 kB / 406.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.3619, allocations: 51.89 kB / 406.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.3623, allocations: 11.56 kB / 406.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006262/0.363, allocations: 187.6 kB / 406.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3634, allocations: 0.6961 MB / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.273e-05/0.3634, allocations: 7.938 kB / 407.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.255e-05/0.3635, allocations: 19.44 kB / 407.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3635, allocations: 0 / 407.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.39, allocations: 2.036 MB / 409.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.491/8.881, allocations: 16.55 kB / 409.7 MB, free: 15.04 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