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.00147/0.00147, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001304/0.001304, allocations: 190 kB / 18.07 MB, free: 5.414 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.29/1.29, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001239/0.001239, allocations: 47.94 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.08702, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002862/0.08993, allocations: 1.549 MB / 328.2 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008964/0.09086, allocations: 0.5393 MB / 328.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.084e-05/0.09093, allocations: 0 / 328.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.09109, allocations: 11.98 kB / 328.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.403e-05/0.09118, allocations: 7.938 kB / 328.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001681/0.09135, allocations: 31.92 kB / 328.8 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.18e-05/0.09144, allocations: 59.78 kB / 328.9 MB, free: 2.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.09155, allocations: 23.95 kB / 328.9 MB, free: 2.547 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.09168, allocations: 27.92 kB / 328.9 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.09175, allocations: 27.91 kB / 329 MB, free: 2.492 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.09177, allocations: 4 kB / 329 MB, free: 2.488 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.484e-05/0.09184, allocations: 16 kB / 329 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.026e-05/0.09187, allocations: 15.91 kB / 329 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.699e-05/0.09191, allocations: 19.88 kB / 329 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.09206, allocations: 71.72 kB / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.09208, allocations: 0 / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.09208, allocations: 0 / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.09209, allocations: 4 kB / 329.1 MB, free: 2.363 MB / 270.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.0006308/0.09273, allocations: 383.5 kB / 329.5 MB, free: 1.941 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.09278, allocations: 12.03 kB / 329.5 MB, free: 1.93 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.09283, allocations: 38.73 kB / 329.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.075e-05/0.09289, allocations: 8.844 kB / 329.5 MB, free: 1.875 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.09302, allocations: 168.3 kB / 329.7 MB, free: 1.672 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.09304, allocations: 384 / 329.7 MB, free: 1.672 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.09306, allocations: 8.312 kB / 329.7 MB, free: 1.664 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.09334, allocations: 89.77 kB / 329.8 MB, free: 1.57 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.09336, allocations: 0 / 329.8 MB, free: 1.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.09338, allocations: 4 kB / 329.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.09339, allocations: 0 / 329.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.0937, allocations: 79.91 kB / 329.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003972/0.0941, allocations: 312.6 kB / 330.2 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.09436, allocations: 74.53 kB / 330.2 MB, free: 1.051 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.09453, allocations: 48.94 kB / 330.3 MB, free: 1 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.09456, allocations: 0 / 330.3 MB, free: 1 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.0946, allocations: 38.59 kB / 330.3 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.0946, allocations: 0 / 330.3 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005659/0.09517, allocations: 153.5 kB / 330.5 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.09522, allocations: 51.41 kB / 330.5 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.9e-05/0.0953, allocations: 109.8 kB / 330.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.09533, allocations: 33.64 kB / 330.7 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.999e-05/0.09537, allocations: 88.14 kB / 330.8 MB, free: 500 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.0954, allocations: 19.64 kB / 330.8 MB, free: 480 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.09545, allocations: 17.72 kB / 330.8 MB, free: 456 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.09555, allocations: 322.8 kB / 331.1 MB, free: 124 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.09571, allocations: 39.97 kB / 331.1 MB, free: 84 kB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.09586, allocations: 40.27 kB / 331.2 MB, free: 44 kB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.09616, allocations: 77.25 kB / 331.3 MB, free: 15.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.09618, allocations: 7.984 kB / 331.3 MB, free: 15.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003438/0.09653, allocations: 113.6 kB / 331.4 MB, free: 15.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.09655, allocations: 7.938 kB / 331.4 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.09656, allocations: 0 / 331.4 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.09658, allocations: 3.984 kB / 331.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.09673, allocations: 15.98 kB / 331.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.09674, allocations: 3.984 kB / 331.4 MB, free: 15.8 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.307e-05/0.09683, allocations: 15.98 kB / 331.4 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.09685, allocations: 7.938 kB / 331.4 MB, free: 15.78 MB / 286.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 9.859e-05/0.09695, allocations: 113.8 kB / 331.5 MB, free: 15.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.09699, allocations: 7.906 kB / 331.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003899/0.09739, allocations: 141.5 kB / 331.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.0974, allocations: 0 / 331.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.09741, allocations: 0 / 331.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.09741, allocations: 0 / 331.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.09761, allocations: 185.6 kB / 331.9 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.09762, allocations: 0 / 331.9 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.09774, allocations: 23.97 kB / 331.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.09775, allocations: 0 / 331.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.09777, allocations: 7.938 kB / 331.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.09777, allocations: 0 / 331.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.09778, allocations: 4 kB / 331.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.09817, allocations: 223.3 kB / 332.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.09823, allocations: 81.02 kB / 332.2 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.09825, allocations: 0 / 332.2 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.09837, allocations: 19.98 kB / 332.2 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.09842, allocations: 7.984 kB / 332.2 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/0.09843, allocations: 0 / 332.2 MB, free: 14.89 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.835e-05/0.09848, allocations: 99.14 kB / 332.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.09849, allocations: 0 / 332.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.09872, allocations: 12 kB / 332.3 MB, free: 14.78 MB / 286.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.0006311/0.09935, allocations: 0.7514 MB / 333.1 MB, free: 14 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003439/0.09971, allocations: 91.91 kB / 333.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.09972, allocations: 288 / 333.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000156/0.09988, allocations: 51.89 kB / 333.2 MB, free: 13.86 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.1002, allocations: 11.88 kB / 333.2 MB, free: 13.85 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004924/0.1007, allocations: 221.4 kB / 333.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.101, allocations: 0.6848 MB / 334.1 MB, free: 12.88 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.725e-05/0.101, allocations: 7.984 kB / 334.1 MB, free: 12.88 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.1011, allocations: 19.44 kB / 334.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1011, allocations: 0 / 334.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01071/0.1118, allocations: 1.742 MB / 335.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.112, allocations: 208.1 kB / 336.1 MB, free: 10.83 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.721, allocations: 3.938 kB / 336.1 MB, free: 10.82 MB / 286.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches