Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.407/1.407, allocations: 227.7 MB / 247.2 MB, free: 10.22 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 71.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2821, allocations: 50.54 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.007724/0.2899, allocations: 6.029 MB / 415.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003909/0.2939, allocations: 1.682 MB / 416.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.295, allocations: 47.81 kB / 416.8 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007208/0.2958, allocations: 309.4 kB / 417.1 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001405/0.2972, allocations: 377.3 kB / 417.5 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007921/0.298, allocations: 355.6 kB / 417.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00232/0.3003, allocations: 2.017 MB / 419.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003064/0.3034, allocations: 2.727 MB / 422.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.3049, allocations: 1.044 MB / 423.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.3067, allocations: 1.21 MB / 424.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003939/0.3071, allocations: 308 kB / 425.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007772/0.3079, allocations: 459.7 kB / 425.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006797/0.3085, allocations: 0.7247 MB / 426.3 MB, free: 16 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/0.3102, allocations: 1.268 MB / 427.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004755/0.3149, allocations: 3.806 MB / 431.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.315, allocations: 0 / 431.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.315, allocations: 0 / 431.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.304e-05/0.3151, allocations: 0 / 431.4 MB, free: 10.93 MB / 350.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.005079/0.3201, allocations: 2.525 MB / 433.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.3202, allocations: 12.03 kB / 433.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004037/0.3206, allocations: 324.9 kB / 434.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008237/0.3215, allocations: 275.4 kB / 434.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.3236, allocations: 1.338 MB / 435.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.3237, allocations: 168.9 kB / 436 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003004/0.324, allocations: 223.9 kB / 436.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00426/0.3283, allocations: 2.542 MB / 438.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.968e-05/0.3284, allocations: 0 / 438.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001907/0.3285, allocations: 92 kB / 438.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.69e-05/0.3286, allocations: 63.98 kB / 438.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003482/0.3321, allocations: 2.134 MB / 441.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/0.3437, allocations: 7.513 MB / 448.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.3451, allocations: 1.254 MB / 449.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.3462, allocations: 0.6257 MB / 450.5 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.828e-05/0.3463, allocations: 8.562 kB / 450.5 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/0.3463, allocations: 51 kB / 450.5 MB, free: 7.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 3.287e-06/0.3463, allocations: 0 / 450.5 MB, free: 7.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004554/0.3509, allocations: 2.454 MB / 453 MB, free: 4.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.351, allocations: 59.97 kB / 453 MB, free: 4.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.3523, allocations: 0.8012 MB / 453.8 MB, free: 3.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.347e-05/0.3524, allocations: 41.69 kB / 453.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008068/0.3532, allocations: 0.9402 MB / 454.8 MB, free: 2.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/0.3535, allocations: 238 kB / 455 MB, free: 2.617 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.3537, allocations: 146.6 kB / 455.2 MB, free: 2.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002521/0.354, allocations: 390.7 kB / 455.6 MB, free: 2.074 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006087/0.3546, allocations: 369.8 kB / 455.9 MB, free: 1.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008311/0.3555, allocations: 0.5828 MB / 456.5 MB, free: 1.035 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.3569, allocations: 0.9854 MB / 457.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3569, allocations: 4 kB / 457.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001959/0.3589, allocations: 1.159 MB / 458.7 MB, free: 14.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.3589, allocations: 8 kB / 458.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.359, allocations: 8 kB / 458.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003168/0.3593, allocations: 117 kB / 458.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007434/0.36, allocations: 167.8 kB / 459 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002623/0.3627, allocations: 2.322 MB / 461.3 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/0.3633, allocations: 35.97 kB / 461.3 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.046e-05/0.3634, allocations: 36 kB / 461.3 MB, free: 11.96 MB / 382.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001413/0.3648, allocations: 0.6575 MB / 462 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.3651, allocations: 91.38 kB / 462.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.3653, allocations: 99.69 kB / 462.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.009e-05/0.3653, allocations: 8 kB / 462.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.3653, allocations: 0 / 462.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.3654, allocations: 3.984 kB / 462.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004687/0.3701, allocations: 2.663 MB / 464.9 MB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.3701, allocations: 4 kB / 464.9 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.3705, allocations: 107.8 kB / 465 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/0.3708, allocations: 104.8 kB / 465.1 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/0.3709, allocations: 20.08 kB / 465.1 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002408/0.3733, allocations: 2.267 MB / 467.4 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3733, allocations: 3.984 kB / 467.4 MB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.3755, allocations: 1.421 MB / 468.8 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003516/0.3759, allocations: 228.6 kB / 469 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.329e-05/0.376, allocations: 19.92 kB / 469 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.3764, allocations: 40.03 kB / 469.1 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.3765, allocations: 52.48 kB / 469.1 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.3766, allocations: 16 kB / 469.1 MB, free: 3.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007697/0.3773, allocations: 0.5614 MB / 469.7 MB, free: 3.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3774, allocations: 0 / 469.7 MB, free: 3.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001069/0.3784, allocations: 300 kB / 470 MB, free: 3.02 MB / 382.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002537/0.381, allocations: 2.011 MB / 472 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.3828, allocations: 1.003 MB / 473 MB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3828, allocations: 0 / 473 MB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.3837, allocations: 0.5646 MB / 473.6 MB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.3848, allocations: 215.1 kB / 473.8 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/0.3997, allocations: 10.19 MB / 484 MB, free: 4.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001554/0.4013, allocations: 1.724 MB / 485.7 MB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005692/0.4019, allocations: 207.1 kB / 485.9 MB, free: 2.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007869/0.4027, allocations: 0.6438 MB / 486.5 MB, free: 2 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4027, allocations: 0 / 486.5 MB, free: 2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06339/0.4661, allocations: 24.29 MB / 0.4989 GB, free: 10 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.52, allocations: 8.625 kB / 0.4989 GB, free: 9.996 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Polyphase_Examples_TestSensors.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1)