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.001038/0.001037, allocations: 94.28 kB / 16.3 MB, free: 5.656 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.0009865/0.0009866, allocations: 188.5 kB / 17.2 MB, free: 5.59 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.424/1.424, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003113, allocations: 8 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.118, allocations: 50.4 MB / 351.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.005696/0.1237, allocations: 4.906 MB / 356.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003635/0.1274, allocations: 1.585 MB / 357.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008794/0.1283, allocations: 43.81 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005402/0.1289, allocations: 246.6 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.1299, allocations: 295 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006023/0.1305, allocations: 219.7 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001679/0.1322, allocations: 1.276 MB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002319/0.1345, allocations: 1.884 MB / 361.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.1357, allocations: 0.6889 MB / 362.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.1369, allocations: 0.8011 MB / 363.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.137, allocations: 124 kB / 363.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000549/0.1376, allocations: 247.8 kB / 363.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004515/0.1381, allocations: 490.5 kB / 364 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005164/0.1386, allocations: 440.6 kB / 364.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003221/0.1418, allocations: 3.043 MB / 367.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1418, allocations: 0 / 367.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1419, allocations: 0 / 367.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001144/0.142, allocations: 0 / 367.5 MB, free: 3.371 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.004736/0.1467, allocations: 2.099 MB / 369.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1468, allocations: 8.031 kB / 369.6 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000608/0.1474, allocations: 324.7 kB / 369.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006295/0.148, allocations: 237.2 kB / 370.1 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2334/0.3815, allocations: 1.23 MB / 371.3 MB, free: 21.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002752/0.3818, allocations: 166.7 kB / 371.5 MB, free: 21.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007577/0.3826, allocations: 222.4 kB / 371.7 MB, free: 21.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007895/0.3905, allocations: 2.512 MB / 374.2 MB, free: 21.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-05/0.3906, allocations: 0 / 374.2 MB, free: 21.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002314/0.3908, allocations: 91.5 kB / 374.3 MB, free: 21.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001014/0.3909, allocations: 61.23 kB / 374.4 MB, free: 21.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004791/0.3957, allocations: 2.134 MB / 376.5 MB, free: 20.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01727/0.413, allocations: 7.651 MB / 384.2 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.4144, allocations: 1.267 MB / 385.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.133e-05/0.4145, allocations: 10.94 kB / 385.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.4145, allocations: 38.56 kB / 385.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=63): time 3.687e-06/0.4145, allocations: 0 / 385.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.005271/0.4198, allocations: 2.591 MB / 388.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4199, allocations: 58.72 kB / 388.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001436/0.4213, allocations: 0.7927 MB / 388.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.477e-05/0.4214, allocations: 38.48 kB / 389 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006723/0.4221, allocations: 0.9135 MB / 389.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.4223, allocations: 217.7 kB / 390.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.514e-05/0.4224, allocations: 15.56 kB / 390.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4225, allocations: 392 kB / 390.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.4231, allocations: 377 kB / 390.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007055/0.4238, allocations: 0.5788 MB / 391.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007108/0.4245, allocations: 470.3 kB / 391.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.4245, allocations: 0 / 391.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002354/0.4269, allocations: 1.139 MB / 393 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.427, allocations: 6.875 kB / 393 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.427, allocations: 8.25 kB / 393.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/0.4274, allocations: 93.06 kB / 393.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008531/0.4282, allocations: 179.9 kB / 393.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/0.4305, allocations: 1.962 MB / 395.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007616/0.4313, allocations: 41.94 kB / 395.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.951e-05/0.4314, allocations: 33.44 kB / 395.4 MB, free: 8.551 MB / 302.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 (91): * Single equations (assignments): 88 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001353/0.4327, allocations: 0.6475 MB / 396 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.433, allocations: 78.22 kB / 396.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000192/0.4332, allocations: 101.3 kB / 396.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-05/0.4332, allocations: 7.75 kB / 396.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.257e-05/0.4332, allocations: 7.828 kB / 396.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.4332, allocations: 7.922 kB / 396.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004755/0.438, allocations: 2.629 MB / 398.8 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.438, allocations: 4 kB / 398.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.4385, allocations: 115.9 kB / 398.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001699/0.4386, allocations: 77.92 kB / 399 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.4387, allocations: 15.98 kB / 399 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.44, allocations: 1.906 MB / 400.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.44, allocations: 4.281 kB / 400.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.4416, allocations: 1.427 MB / 402.4 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.4419, allocations: 220.1 kB / 402.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.646e-05/0.442, allocations: 20 kB / 402.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.4424, allocations: 48.02 kB / 402.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.4425, allocations: 41.67 kB / 402.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.794e-05/0.4426, allocations: 23.98 kB / 402.7 MB, free: 2.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005879/0.4432, allocations: 0.5458 MB / 403.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4432, allocations: 0 / 403.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001131/0.4443, allocations: 304 kB / 403.6 MB, free: 1.195 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (56): * Single equations (assignments): 53 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002166/0.4465, allocations: 2.139 MB / 405.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.4482, allocations: 0.9881 MB / 406.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.4482, allocations: 1.688 kB / 406.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008224/0.449, allocations: 0.5495 MB / 407.2 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009443/0.45, allocations: 192.9 kB / 407.4 MB, free: 13.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.4643, allocations: 12.51 MB / 419.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.4657, allocations: 1.76 MB / 421.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006394/0.4664, allocations: 211 kB / 421.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007657/0.4672, allocations: 0.6477 MB / 422.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of SimCode: time 2.054e-06/0.4672, allocations: 0 / 422.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04695/0.5141, allocations: 22.1 MB / 444.7 MB, free: 8.043 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.5144, allocations: 208.2 kB / 444.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/2.666, allocations: 0 / 444.9 MB, free: 7.797 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