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.001609/0.001609, allocations: 112.9 kB / 16.92 MB, free: 5.809 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.001964/0.001964, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.566/1.566, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 47.95 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1487, allocations: 49.45 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.004622/0.1534, allocations: 1.499 MB / 351.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.1548, allocations: 0.4961 MB / 352.1 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.766e-05/0.1549, allocations: 0 / 352.1 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1551, allocations: 23.86 kB / 352.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.1552, allocations: 3.938 kB / 352.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002852/0.1555, allocations: 39.91 kB / 352.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.1557, allocations: 59.78 kB / 352.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.1558, allocations: 15.98 kB / 352.3 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.156, allocations: 23.92 kB / 352.3 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.703e-05/0.1561, allocations: 35.84 kB / 352.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.1561, allocations: 8 kB / 352.4 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.1563, allocations: 16 kB / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.276e-05/0.1563, allocations: 15.91 kB / 352.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.587e-05/0.1564, allocations: 31.86 kB / 352.4 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.1566, allocations: 67.78 kB / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.1566, allocations: 0 / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1566, allocations: 0 / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.1566, allocations: 0 / 352.5 MB, free: 1.977 MB / 286.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.0008496/0.1575, allocations: 383.6 kB / 352.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.1576, allocations: 8.031 kB / 352.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.778e-05/0.1576, allocations: 34.75 kB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.1577, allocations: 8.844 kB / 352.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.1579, allocations: 180.2 kB / 353.1 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1579, allocations: 4.375 kB / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.1579, allocations: 4.359 kB / 353.1 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.1583, allocations: 93.7 kB / 353.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1583, allocations: 0 / 353.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.1583, allocations: 11.94 kB / 353.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1583, allocations: 0 / 353.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003368/0.1587, allocations: 75.92 kB / 353.3 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006456/0.1593, allocations: 304.8 kB / 353.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1596, allocations: 74.56 kB / 353.6 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.1598, allocations: 44.95 kB / 353.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.1599, allocations: 0 / 353.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.1599, allocations: 42.56 kB / 353.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.582e-06/0.1599, allocations: 0 / 353.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006402/0.1605, allocations: 149.4 kB / 353.9 MB, free: 420 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.1606, allocations: 59.41 kB / 353.9 MB, free: 348 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.784e-05/0.1607, allocations: 105.8 kB / 354 MB, free: 232 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.1608, allocations: 29.7 kB / 354.1 MB, free: 196 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.74e-05/0.1608, allocations: 103.9 kB / 354.2 MB, free: 88 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.1609, allocations: 15.8 kB / 354.2 MB, free: 72 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.465e-05/0.1609, allocations: 21.7 kB / 354.2 MB, free: 44 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1611, allocations: 314.8 kB / 354.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.1613, allocations: 43.95 kB / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.1614, allocations: 31.97 kB / 354.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.1617, allocations: 80.78 kB / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1618, allocations: 0 / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003722/0.1621, allocations: 117.6 kB / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.1622, allocations: 6.812 kB / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1622, allocations: 0 / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.1622, allocations: 4 kB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.1624, allocations: 20.34 kB / 354.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1624, allocations: 0 / 354.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.143e-05/0.1625, allocations: 15.92 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.1625, allocations: 7.938 kB / 354.8 MB, free: 15.4 MB / 302.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.0001281/0.1627, allocations: 121.8 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.1627, allocations: 3.906 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.1631, allocations: 133.5 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1632, allocations: 0 / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.1632, allocations: 8 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1632, allocations: 0 / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.1634, allocations: 186 kB / 355.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1635, allocations: 0 / 355.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.1636, allocations: 23.98 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1636, allocations: 0 / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1636, allocations: 8 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1636, allocations: 0 / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1636, allocations: 0 / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000453/0.1641, allocations: 227.2 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.837e-05/0.1642, allocations: 85.02 kB / 355.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.1642, allocations: 0 / 355.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.1643, allocations: 19.97 kB / 355.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.1644, allocations: 4 kB / 355.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.1644, allocations: 7.984 kB / 355.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.848e-05/0.1644, allocations: 95.2 kB / 355.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1644, allocations: 3.938 kB / 355.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002331/0.1647, allocations: 8 kB / 355.7 MB, free: 14.38 MB / 302.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.001071/0.1658, allocations: 0.7586 MB / 356.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004036/0.1662, allocations: 87.91 kB / 356.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.1662, allocations: 4 kB / 356.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.1664, allocations: 55.89 kB / 356.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.1668, allocations: 4 kB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006752/0.1674, allocations: 207.5 kB / 356.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1678, allocations: 0.6887 MB / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.953e-05/0.1679, allocations: 4 kB / 357.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.778e-05/0.168, allocations: 19.42 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.168, allocations: 3.938 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.1896, allocations: 1.979 MB / 359.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.806/8.996, allocations: 15.92 kB / 359.6 MB, free: 10.54 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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