Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.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.ShowTransferFunction,fileNamePrefix="Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction",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.001229/0.001229, allocations: 88.58 kB / 16.3 MB, free: 5.996 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.001439/0.001439, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.621/1.621, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003928, allocations: 4.875 kB / 300.8 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1358, allocations: 50.43 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.00185/0.1377, allocations: 1.318 MB / 352.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1388, allocations: 0.5965 MB / 353.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.471e-05/0.1389, allocations: 3.938 kB / 353.1 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002188/0.1392, allocations: 23.88 kB / 353.2 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.1393, allocations: 31.83 kB / 353.2 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009812/0.1403, allocations: 0.4977 MB / 353.7 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.1405, allocations: 67.86 kB / 353.8 MB, free: 9.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.1406, allocations: 28.98 kB / 353.8 MB, free: 9.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.1407, allocations: 51.77 kB / 353.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.1409, allocations: 67.73 kB / 353.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.1409, allocations: 8 kB / 353.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1411, allocations: 119.8 kB / 354 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.618e-05/0.1412, allocations: 31.89 kB / 354.1 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.131e-05/0.1412, allocations: 45.64 kB / 354.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.1415, allocations: 135.8 kB / 354.2 MB, free: 8.621 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1415, allocations: 0 / 354.2 MB, free: 8.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1415, allocations: 3.938 kB / 354.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1415, allocations: 0 / 354.2 MB, free: 8.617 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.00156/0.1431, allocations: 0.5455 MB / 354.8 MB, free: 8.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.1431, allocations: 8.031 kB / 354.8 MB, free: 8.016 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.264e-05/0.1432, allocations: 50.5 kB / 354.8 MB, free: 7.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.1445, allocations: 167.7 kB / 355 MB, free: 7.793 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.1447, allocations: 190.8 kB / 355.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.1447, allocations: 8 kB / 355.2 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.1447, allocations: 12 kB / 355.2 MB, free: 7.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004101/0.1451, allocations: 181.6 kB / 355.4 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1451, allocations: 3.953 kB / 355.4 MB, free: 7.359 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.1452, allocations: 8 kB / 355.4 MB, free: 7.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.737e-05/0.1452, allocations: 11.92 kB / 355.4 MB, free: 7.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.1456, allocations: 175.9 kB / 355.6 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000973/0.1466, allocations: 0.5468 MB / 356.1 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.147, allocations: 174.5 kB / 356.3 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.147, allocations: 11.98 kB / 356.3 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.1471, allocations: 34.56 kB / 356.3 MB, free: 6.336 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.1471, allocations: 0 / 356.3 MB, free: 6.336 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.000777/0.1479, allocations: 376.9 kB / 356.7 MB, free: 5.945 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1479, allocations: 55.36 kB / 356.8 MB, free: 5.879 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.1481, allocations: 183.3 kB / 356.9 MB, free: 5.684 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.1481, allocations: 29.7 kB / 357 MB, free: 5.648 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.93e-05/0.1482, allocations: 116 kB / 357.1 MB, free: 5.531 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.1483, allocations: 43.27 kB / 357.1 MB, free: 5.488 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.1483, allocations: 4 kB / 357.1 MB, free: 5.484 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1484, allocations: 330.8 kB / 357.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.1486, allocations: 75.95 kB / 357.5 MB, free: 5.078 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1488, allocations: 107.3 kB / 357.6 MB, free: 4.961 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.1491, allocations: 91.95 kB / 357.7 MB, free: 4.871 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1491, allocations: 3.938 kB / 357.7 MB, free: 4.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004906/0.1496, allocations: 245.4 kB / 358 MB, free: 4.621 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1496, allocations: 4 kB / 358 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1496, allocations: 0 / 358 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.1496, allocations: 4 kB / 358 MB, free: 4.613 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.1499, allocations: 39.95 kB / 358 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.1499, allocations: 7.891 kB / 358 MB, free: 4.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.15, allocations: 23.98 kB / 358 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1501, allocations: 8 kB / 358.1 MB, free: 4.535 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.1502, allocations: 133.8 kB / 358.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.1502, allocations: 15.81 kB / 358.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005885/0.1508, allocations: 281.7 kB / 358.5 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1509, allocations: 0 / 358.5 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1509, allocations: 0 / 358.5 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1509, allocations: 0 / 358.5 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003049/0.1512, allocations: 285.3 kB / 358.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1512, allocations: 0 / 358.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.1514, allocations: 47.95 kB / 358.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1514, allocations: 4 kB / 358.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.1515, allocations: 4 kB / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1515, allocations: 4 kB / 358.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1515, allocations: 0 / 358.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005432/0.152, allocations: 347.1 kB / 359.2 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.1521, allocations: 96.91 kB / 359.2 MB, free: 3.242 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.1521, allocations: 4 kB / 359.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.1523, allocations: 11.98 kB / 359.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.1524, allocations: 15.92 kB / 359.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.1524, allocations: 11.98 kB / 359.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.935e-05/0.1525, allocations: 131.9 kB / 359.4 MB, free: 3.07 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1525, allocations: 4 kB / 359.4 MB, free: 3.066 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.1528, allocations: 28 kB / 359.5 MB, free: 3.039 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 (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00083/0.1536, allocations: 0.8817 MB / 360.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004919/0.1541, allocations: 195.9 kB / 360.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1541, allocations: 0 / 360.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.1544, allocations: 111.9 kB / 360.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.1546, allocations: 23.88 kB / 360.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.1566, allocations: 1.543 MB / 362.2 MB, free: 216 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.1569, allocations: 0.7322 MB / 362.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.157, allocations: 37.34 kB / 363 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1572, allocations: 55.41 kB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1572, allocations: 4 kB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.1735, allocations: 3.525 MB / 366.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/0.1738, allocations: 181.7 kB / 366.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/1.945, allocations: 0 / 366.7 MB, free: 11.74 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat does not exist to compare? outputFormat=mat