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.0008745/0.0008749, allocations: 94.39 kB / 17.3 MB, free: 6.391 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.000945/0.0009451, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.671/1.671, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0005765/0.0005768, allocations: 16 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1218, allocations: 47.57 MB / 329 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001986/0.1239, allocations: 1.226 MB / 330.3 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00097/0.1249, allocations: 0.5316 MB / 330.8 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.125, allocations: 0 / 330.8 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.1251, allocations: 11.94 kB / 330.8 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.1253, allocations: 3.938 kB / 330.8 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.1255, allocations: 35.97 kB / 330.8 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.1256, allocations: 51.84 kB / 330.9 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1258, allocations: 23.97 kB / 330.9 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.1259, allocations: 19.92 kB / 330.9 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.068e-05/0.126, allocations: 27.84 kB / 331 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.126, allocations: 4 kB / 331 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.055e-05/0.1261, allocations: 19.94 kB / 331 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.463e-05/0.1261, allocations: 15.91 kB / 331 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.458e-05/0.1262, allocations: 45.58 kB / 331 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.1264, allocations: 55.83 kB / 331.1 MB, free: 1.59 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.1264, allocations: 0 / 331.1 MB, free: 1.59 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1264, allocations: 7.938 kB / 331.1 MB, free: 1.582 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1264, allocations: 0 / 331.1 MB, free: 1.582 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.0006859/0.1271, allocations: 387.5 kB / 331.5 MB, free: 1.156 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.1272, allocations: 12.03 kB / 331.5 MB, free: 1.145 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.1272, allocations: 38.75 kB / 331.5 MB, free: 1.098 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.1273, allocations: 4.938 kB / 331.5 MB, free: 1.094 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.1274, allocations: 176.2 kB / 331.7 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.1274, allocations: 4.375 kB / 331.7 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.1275, allocations: 4.375 kB / 331.7 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.1278, allocations: 101.7 kB / 331.8 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1278, allocations: 0 / 331.8 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1278, allocations: 4 kB / 331.8 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.1278, allocations: 0 / 331.8 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003583/0.1282, allocations: 103.9 kB / 331.9 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000443/0.1286, allocations: 316.6 kB / 332.2 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.1289, allocations: 82.53 kB / 332.3 MB, free: 220 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.1291, allocations: 60.98 kB / 332.4 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.1291, allocations: 0 / 332.4 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.1292, allocations: 30.56 kB / 332.4 MB, free: 116 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 8.12e-07/0.1292, allocations: 4 kB / 332.4 MB, free: 112 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006369/0.1298, allocations: 181.6 kB / 332.6 MB, free: 15.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.1299, allocations: 51.41 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.144e-05/0.1299, allocations: 113.8 kB / 332.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.13, allocations: 25.7 kB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.13, allocations: 96.02 kB / 332.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.1301, allocations: 19.75 kB / 332.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.578e-05/0.1301, allocations: 9.719 kB / 332.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1302, allocations: 330.7 kB / 333.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.1304, allocations: 43.97 kB / 333.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.1306, allocations: 51.95 kB / 333.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.1309, allocations: 100.8 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1309, allocations: 4 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003734/0.1313, allocations: 133.5 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.1313, allocations: 10.66 kB / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1313, allocations: 3.938 kB / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1314, allocations: 0 / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1315, allocations: 27.91 kB / 333.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1315, allocations: 0 / 333.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.782e-05/0.1316, allocations: 20.36 kB / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1316, allocations: 7.938 kB / 333.6 MB, free: 14.84 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 8.815e-05/0.1317, allocations: 109.8 kB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.1318, allocations: 7.906 kB / 333.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004335/0.1322, allocations: 157.5 kB / 333.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1322, allocations: 0 / 333.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1322, allocations: 4 kB / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1322, allocations: 0 / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.1324, allocations: 185.6 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1324, allocations: 448 / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.1326, allocations: 31.91 kB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1326, allocations: 0 / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.1326, allocations: 8 kB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1326, allocations: 0 / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1326, allocations: 4 kB / 334.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004305/0.1331, allocations: 251.3 kB / 334.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.1331, allocations: 77.11 kB / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.1331, allocations: 0 / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.1333, allocations: 19.98 kB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.1333, allocations: 7.984 kB / 334.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.1333, allocations: 8 kB / 334.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.982e-05/0.1334, allocations: 91.2 kB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1334, allocations: 3.938 kB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.1336, allocations: 12 kB / 334.6 MB, free: 13.79 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.0006881/0.1343, allocations: 0.7749 MB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1347, allocations: 115.8 kB / 335.5 MB, free: 12.87 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1347, allocations: 0 / 335.5 MB, free: 12.87 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.1349, allocations: 59.95 kB / 335.5 MB, free: 12.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.1352, allocations: 3.938 kB / 335.5 MB, free: 12.81 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004847/0.1357, allocations: 228.2 kB / 335.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.1361, allocations: 0.6887 MB / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.362e-05/0.1361, allocations: 4.281 kB / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.493e-05/0.1362, allocations: 23.42 kB / 336.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of SimCode: time 3.436e-06/0.1362, allocations: 0 / 336.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01378/0.15, allocations: 1.658 MB / 338.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.1502, allocations: 211.4 kB / 338.3 MB, free: 9.891 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/1.944, allocations: 0 / 338.3 MB, free: 9.891 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