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.0009503/0.0009504, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001052/0.001052, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.459/1.459, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003051, allocations: 4 kB / 301.5 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1192, allocations: 50.41 MB / 351.9 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001996/0.1213, allocations: 1.225 MB / 353.2 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009601/0.1223, allocations: 495.3 kB / 353.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.492e-05/0.1224, allocations: 4 kB / 353.6 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.1225, allocations: 8 kB / 353.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.1226, allocations: 7.922 kB / 353.7 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.1229, allocations: 35.92 kB / 353.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.123, allocations: 67.77 kB / 353.8 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.1231, allocations: 15.95 kB / 353.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.1233, allocations: 19.92 kB / 353.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.536e-05/0.1234, allocations: 23.91 kB / 353.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.1234, allocations: 0 / 353.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.671e-05/0.1235, allocations: 16 kB / 353.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.616e-05/0.1235, allocations: 15.91 kB / 353.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.262e-05/0.1236, allocations: 41.58 kB / 353.9 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.1238, allocations: 67.7 kB / 354 MB, free: 1.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1238, allocations: 12 kB / 354 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1238, allocations: 0 / 354 MB, free: 1.285 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1238, allocations: 0 / 354 MB, free: 1.285 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.0006652/0.1245, allocations: 379.6 kB / 354.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1245, allocations: 8.031 kB / 354.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.1246, allocations: 38.75 kB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.301e-05/0.1246, allocations: 0.9375 kB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1248, allocations: 180.2 kB / 354.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.1248, allocations: 4.375 kB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.1248, allocations: 384 / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.1251, allocations: 105.7 kB / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1252, allocations: 0 / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1252, allocations: 0 / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1252, allocations: 0 / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003563/0.1255, allocations: 103.9 kB / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004902/0.126, allocations: 312.6 kB / 355.1 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.1264, allocations: 90.47 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.1266, allocations: 60.95 kB / 355.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.1266, allocations: 0 / 355.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.1266, allocations: 34.59 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.1266, allocations: 0 / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006345/0.1273, allocations: 189.5 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.1273, allocations: 51.41 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.685e-05/0.1274, allocations: 109.8 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1274, allocations: 25.7 kB / 355.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.352e-05/0.1275, allocations: 96.06 kB / 355.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/0.1275, allocations: 15.8 kB / 355.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.1276, allocations: 17.66 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1277, allocations: 322.8 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.1279, allocations: 43.97 kB / 356.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.128, allocations: 60.2 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.1284, allocations: 104.7 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1284, allocations: 0 / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003774/0.1288, allocations: 137.5 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1288, allocations: 4 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1288, allocations: 0 / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1288, allocations: 0 / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.129, allocations: 27.97 kB / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.129, allocations: 0 / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.237e-05/0.1291, allocations: 23.92 kB / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.1291, allocations: 7.938 kB / 356.5 MB, free: 14.55 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 8.762e-05/0.1292, allocations: 113.8 kB / 356.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.1292, allocations: 3.906 kB / 356.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004654/0.1297, allocations: 153.6 kB / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1297, allocations: 0 / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1298, allocations: 8 kB / 356.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1298, allocations: 0 / 356.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002049/0.13, allocations: 185.6 kB / 356.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.13, allocations: 4.359 kB / 356.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.1301, allocations: 23.98 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.1301, allocations: 4 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1301, allocations: 0 / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1302, allocations: 7.875 kB / 357 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1302, allocations: 4 kB / 357 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004427/0.1306, allocations: 251.4 kB / 357.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.1307, allocations: 81.11 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.1307, allocations: 0 / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.1308, allocations: 15.98 kB / 357.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.1309, allocations: 7.984 kB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.1309, allocations: 4.188 kB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.1309, allocations: 95.2 kB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1309, allocations: 0 / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.1312, allocations: 15.91 kB / 357.4 MB, free: 13.49 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.000749/0.1319, allocations: 0.7826 MB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004017/0.1323, allocations: 107.9 kB / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1324, allocations: 0 / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.1325, allocations: 63.89 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1329, allocations: 11.94 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005388/0.1334, allocations: 224.1 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.1337, allocations: 0.6887 MB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.821e-05/0.1338, allocations: 8 kB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.1338, allocations: 19.42 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1338, allocations: 0 / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0134/0.1472, allocations: 1.679 MB / 361 MB, free: 9.941 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.1475, allocations: 196.2 kB / 361.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.125, allocations: 0 / 361.2 MB, free: 9.691 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