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.001101/0.001101, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.384, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003464/0.3875, allocations: 1.533 MB / 410.2 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.3886, allocations: 0.5258 MB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.28e-05/0.3887, allocations: 0 / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.3888, allocations: 19.92 kB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.173e-05/0.3889, allocations: 7.875 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.3891, allocations: 47.89 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.3892, allocations: 55.84 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.3893, allocations: 15.98 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3896, allocations: 35.84 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.234e-05/0.3896, allocations: 27.91 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.3897, allocations: 11.88 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.3897, allocations: 16 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.053e-05/0.3898, allocations: 15.98 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.284e-05/0.3898, allocations: 23.88 kB / 411 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.39, allocations: 78.67 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.39, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.39, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.892e-06/0.39, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.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.0007542/0.3908, allocations: 383.2 kB / 411.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.3909, allocations: 8.031 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.24e-05/0.3909, allocations: 38.73 kB / 411.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.3909, allocations: 12.89 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.3911, allocations: 168.3 kB / 411.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.3911, allocations: 384 / 411.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.3911, allocations: 8.359 kB / 411.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.3914, allocations: 85.77 kB / 411.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.3914, allocations: 3.938 kB / 411.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.3914, allocations: 4 kB / 411.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3915, allocations: 4 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.3918, allocations: 87.84 kB / 411.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004127/0.3922, allocations: 304.7 kB / 412.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.3925, allocations: 82.56 kB / 412.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.3927, allocations: 44.94 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.3927, allocations: 4 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.3927, allocations: 34.56 kB / 412.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.3927, allocations: 0 / 412.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005812/0.3933, allocations: 153.5 kB / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.3934, allocations: 51.41 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.813e-05/0.3934, allocations: 113.8 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.3935, allocations: 33.64 kB / 412.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.3935, allocations: 92.09 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.506e-05/0.3936, allocations: 15.83 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.3936, allocations: 21.72 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3937, allocations: 326.8 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.3939, allocations: 31.97 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.3941, allocations: 39.95 kB / 413.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.3943, allocations: 76.8 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3944, allocations: 3.984 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003845/0.3947, allocations: 113.6 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3948, allocations: 4 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3948, allocations: 0 / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.3948, allocations: 0 / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.395, allocations: 23.92 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.395, allocations: 7.984 kB / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.092e-05/0.3951, allocations: 7.984 kB / 413.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.3951, allocations: 7.938 kB / 413.5 MB, free: 12.56 MB / 334.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.21e-05/0.3952, allocations: 113.8 kB / 413.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.3952, allocations: 4 kB / 413.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004029/0.3956, allocations: 137.5 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3956, allocations: 0 / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3956, allocations: 0 / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3956, allocations: 3.938 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.3958, allocations: 189.6 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3958, allocations: 4.375 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.396, allocations: 23.97 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.396, allocations: 4 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.396, allocations: 8 kB / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.396, allocations: 0 / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.396, allocations: 0 / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003876/0.3964, allocations: 219.4 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.3964, allocations: 81.11 kB / 414.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.3965, allocations: 4 kB / 414.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.3966, allocations: 11.98 kB / 414.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.3966, allocations: 7.984 kB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.3966, allocations: 384 / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.805e-05/0.3967, allocations: 99.09 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3967, allocations: 0 / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.3969, allocations: 16 kB / 414.4 MB, free: 11.55 MB / 334.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.0006725/0.3976, allocations: 0.7592 MB / 415.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000362/0.398, allocations: 88.09 kB / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.398, allocations: 0 / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.3982, allocations: 51.94 kB / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.3985, allocations: 8 kB / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005094/0.399, allocations: 191.6 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.3993, allocations: 0.6884 MB / 416.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.582e-05/0.3993, allocations: 7.984 kB / 416.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.3994, allocations: 19.44 kB / 416.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3994, allocations: 0 / 416.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.4194, allocations: 2.026 MB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.933/8.353, allocations: 11.91 kB / 418.2 MB, free: 7.703 MB / 334.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