Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.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.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors",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.000944/0.000944, allocations: 87.41 kB / 16.31 MB, free: 6.453 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.000897/0.0008969, allocations: 182.4 kB / 17.21 MB, free: 6.324 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.45/1.45, allocations: 223.2 MB / 241.2 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002585, allocations: 6.531 kB / 300.9 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1237, allocations: 50.41 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.006073/0.1298, allocations: 5.165 MB / 356.5 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.1333, allocations: 1.55 MB / 358 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1345, allocations: 39.88 kB / 358.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007607/0.1352, allocations: 230.3 kB / 358.3 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001453/0.1367, allocations: 306.2 kB / 358.6 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008067/0.1375, allocations: 223.7 kB / 358.8 MB, free: 4.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002427/0.14, allocations: 1.982 MB / 360.8 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003049/0.143, allocations: 1.884 MB / 362.7 MB, free: 204 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.1443, allocations: 0.7083 MB / 363.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001694/0.1461, allocations: 0.8712 MB / 364.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004173/0.1465, allocations: 124 kB / 364.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.1475, allocations: 239.8 kB / 364.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008123/0.1484, allocations: 0.4984 MB / 365.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.1495, allocations: 436.6 kB / 365.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003941/0.1535, allocations: 3.05 MB / 368.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1535, allocations: 0 / 368.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1535, allocations: 4 kB / 368.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001279/0.1536, allocations: 0 / 368.6 MB, free: 10.26 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.004992/0.1586, allocations: 2.095 MB / 370.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.1587, allocations: 16.03 kB / 370.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007862/0.1595, allocations: 324.7 kB / 371 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007489/0.1602, allocations: 237.2 kB / 371.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.1622, allocations: 1.235 MB / 372.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.1623, allocations: 168.5 kB / 372.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002687/0.1626, allocations: 216 kB / 372.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003966/0.1665, allocations: 2.534 MB / 375.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.1666, allocations: 4 kB / 375.4 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/0.1668, allocations: 88 kB / 375.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.085e-05/0.1668, allocations: 56 kB / 375.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003138/0.17, allocations: 2.137 MB / 377.7 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009966/0.18, allocations: 7.643 MB / 385.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.1811, allocations: 1.262 MB / 386.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009258/0.1821, allocations: 0.618 MB / 387.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.1821, allocations: 4.562 kB / 387.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.1822, allocations: 39.12 kB / 387.3 MB, free: 7.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=63): time 2.915e-06/0.1822, allocations: 0 / 387.3 MB, free: 7.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.003841/0.186, allocations: 2.451 MB / 389.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.1861, allocations: 67.91 kB / 389.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009129/0.187, allocations: 0.797 MB / 390.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.1871, allocations: 37.64 kB / 390.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000521/0.1876, allocations: 0.9138 MB / 391.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.1877, allocations: 224.7 kB / 391.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.1878, allocations: 16 kB / 391.8 MB, free: 2.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1879, allocations: 390.8 kB / 392.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005147/0.1885, allocations: 365.8 kB / 392.5 MB, free: 1.703 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006424/0.1891, allocations: 0.5868 MB / 393.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006245/0.1898, allocations: 469.8 kB / 393.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1898, allocations: 0 / 393.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001642/0.1914, allocations: 1.155 MB / 394.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1915, allocations: 11.94 kB / 394.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.1915, allocations: 4 kB / 394.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/0.1918, allocations: 116.9 kB / 394.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006419/0.1924, allocations: 175.7 kB / 395 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.1945, allocations: 2.138 MB / 397.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/0.195, allocations: 44.03 kB / 397.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-05/0.1951, allocations: 35.98 kB / 397.2 MB, free: 12.74 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (89): * Single equations (assignments): 86 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001081/0.1962, allocations: 0.6457 MB / 397.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.1964, allocations: 79.06 kB / 397.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.1966, allocations: 103.5 kB / 398 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/0.1966, allocations: 12.19 kB / 398 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.1967, allocations: 4 kB / 398.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.1967, allocations: 11.92 kB / 398.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004622/0.2013, allocations: 2.673 MB / 400.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.2014, allocations: 0 / 400.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.2018, allocations: 111.9 kB / 400.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003041/0.2021, allocations: 100.9 kB / 400.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-05/0.2022, allocations: 15.98 kB / 401 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002737/0.205, allocations: 2.069 MB / 403 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.205, allocations: 0 / 403 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00273/0.2077, allocations: 1.431 MB / 404.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005895/0.2083, allocations: 228 kB / 404.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.2086, allocations: 12 kB / 404.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.2092, allocations: 51.97 kB / 404.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.2093, allocations: 48.5 kB / 404.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.157e-05/0.2094, allocations: 19.98 kB / 404.8 MB, free: 4.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001192/0.2106, allocations: 0.5574 MB / 405.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2106, allocations: 0 / 405.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001464/0.2121, allocations: 304 kB / 405.7 MB, free: 4 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * 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 (55): * Single equations (assignments): 52 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00342/0.2155, allocations: 1.999 MB / 407.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.2177, allocations: 1.007 MB / 408.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2177, allocations: 0 / 408.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.2187, allocations: 0.5607 MB / 409.2 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.22, allocations: 225.1 kB / 409.5 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/0.2339, allocations: 8.083 MB / 417.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002063/0.236, allocations: 1.729 MB / 419.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007158/0.2368, allocations: 203.1 kB / 419.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008288/0.2376, allocations: 0.636 MB / 420.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.2376, allocations: 4 kB / 420.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2475/0.4851, allocations: 22.19 MB / 442.3 MB, free: 57.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/0.4853, allocations: 218.7 kB / 442.5 MB, free: 57.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.667, allocations: 0 / 442.5 MB, free: 57.4 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors.fmu > Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat does not exist to compare? outputFormat=mat