Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",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.0009438/0.0009492, allocations: 85.16 kB / 16.31 MB, free: 6.457 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.001151/0.001151, allocations: 180 kB / 17.21 MB, free: 6.328 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.471/1.471, allocations: 223.3 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002817/0.0002817, allocations: 6.594 kB / 300.9 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1272, allocations: 50.42 MB / 351.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02839/0.1557, allocations: 26.62 MB / 378 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02223/0.1779, allocations: 8.006 MB / 386 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008465/0.1865, allocations: 175.4 kB / 386.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006635/0.1931, allocations: 1.255 MB / 387.4 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.2036, allocations: 2.441 MB / 389.8 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004795/0.2084, allocations: 1.067 MB / 390.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01743/0.2258, allocations: 9.935 MB / 400.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02155/0.2474, allocations: 9.991 MB / 410.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008781/0.2563, allocations: 3.134 MB / 414 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01113/0.2675, allocations: 3.634 MB / 417.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003447/0.271, allocations: 476 kB / 418.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006182/0.2772, allocations: 0.8004 MB / 418.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003751/0.281, allocations: 1.565 MB / 420.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004275/0.2853, allocations: 1.584 MB / 422 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2985/0.5839, allocations: 13.19 MB / 435.2 MB, free: 18.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.5839, allocations: 2.125 kB / 435.2 MB, free: 18.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.5839, allocations: 0.75 kB / 435.2 MB, free: 18.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004929/0.5844, allocations: 0 / 435.2 MB, free: 18.91 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02728/0.6117, allocations: 8.255 MB / 443.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.736e-05/0.6118, allocations: 9.625 kB / 443.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008034/0.6198, allocations: 1.15 MB / 444.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/0.6508, allocations: 5.279 MB / 449.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01268/0.6636, allocations: 4.878 MB / 454.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006249/0.6642, allocations: 0.5348 MB / 455.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003717/0.6679, allocations: 0.7126 MB / 456 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03241/0.7004, allocations: 11.28 MB / 467.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002837/0.7007, allocations: 10.38 kB / 467.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00177/0.7025, allocations: 305.1 kB / 467.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000479/0.703, allocations: 442 kB / 468 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02932/0.7323, allocations: 10.77 MB / 478.8 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09047/0.8228, allocations: 38.1 MB / 0.5048 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0243/0.8471, allocations: 28.05 MB / 0.5322 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006797/0.854, allocations: 2.639 MB / 0.5348 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02062/0.8746, allocations: 7.934 MB / 0.5425 GB, free: 5.051 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.73e-05/0.8747, allocations: 56.56 kB / 0.5426 GB, free: 4.984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 4.468e-06/0.8748, allocations: 0 / 0.5426 GB, free: 4.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02651/0.9013, allocations: 11.09 MB / 0.5534 GB, free: 9.902 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002721/0.9041, allocations: 1.913 MB / 0.5553 GB, free: 7.848 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009257/0.9134, allocations: 3.783 MB / 0.559 GB, free: 4.086 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006075/0.914, allocations: 69.7 kB / 0.559 GB, free: 4.012 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003211/0.9172, allocations: 3.553 MB / 0.5625 GB, free: 452 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/0.9186, allocations: 0.8219 MB / 0.5633 GB, free: 15.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006775/0.9193, allocations: 100 kB / 0.5634 GB, free: 15.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005599/0.9199, allocations: 0.4968 MB / 0.5639 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003791/0.9237, allocations: 1.872 MB / 0.5657 GB, free: 13.14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006044/0.9298, allocations: 4.371 MB / 0.57 GB, free: 7.578 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005496/0.9353, allocations: 2.823 MB / 0.5727 GB, free: 4.84 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/0.9355, allocations: 24 kB / 0.5728 GB, free: 4.816 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01625/0.9517, allocations: 6.948 MB / 0.5795 GB, free: 14.39 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.9519, allocations: 44.62 kB / 0.5796 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/0.9522, allocations: 84 kB / 0.5797 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/0.9544, allocations: 0.7521 MB / 0.5804 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004346/0.9588, allocations: 1.116 MB / 0.5815 GB, free: 12.47 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007987/0.9668, allocations: 5.216 MB / 0.5866 GB, free: 7.168 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005007/0.9719, allocations: 311.1 kB / 0.5869 GB, free: 6.863 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001199/0.9731, allocations: 272 kB / 0.5871 GB, free: 6.598 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007011/0.9801, allocations: 2.534 MB / 0.5896 GB, free: 4.145 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/0.9816, allocations: 379.2 kB / 0.59 GB, free: 3.77 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3007/1.282, allocations: 4.274 MB / 0.5942 GB, free: 168.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.729e-05/1.282, allocations: 29.77 kB / 0.5942 GB, free: 168.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-05/1.283, allocations: 6.25 kB / 0.5942 GB, free: 168.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.627e-05/1.283, allocations: 12.94 kB / 0.5942 GB, free: 168.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.31, allocations: 14.26 MB / 0.6081 GB, free: 164.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/1.31, allocations: 13.92 kB / 0.6081 GB, free: 164.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/1.312, allocations: 482.2 kB / 0.6086 GB, free: 164.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001774/1.314, allocations: 0.6981 MB / 0.6093 GB, free: 164.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/1.314, allocations: 67.41 kB / 0.6093 GB, free: 164.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007155/1.321, allocations: 6.938 MB / 0.6161 GB, free: 159.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001311/1.322, allocations: 1.856 MB / 0.6179 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009055/1.331, allocations: 6.713 MB / 0.6245 GB, free: 154.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/1.334, allocations: 0.7994 MB / 0.6253 GB, free: 154.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005016/1.334, allocations: 59.66 kB / 0.6253 GB, free: 154.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/1.336, allocations: 173.5 kB / 0.6255 GB, free: 154.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004085/1.336, allocations: 220.5 kB / 0.6257 GB, free: 154.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001567/1.336, allocations: 89 kB / 0.6258 GB, free: 154.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003979/1.34, allocations: 2.486 MB / 0.6282 GB, free: 153.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.34, allocations: 0 / 0.6282 GB, free: 153.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005495/1.346, allocations: 1.283 MB / 0.6295 GB, free: 153.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00905/1.355, allocations: 7.394 MB / 0.6367 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008295/1.363, allocations: 5.1 MB / 0.6417 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.982e-05/1.363, allocations: 4 kB / 0.6417 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003438/1.367, allocations: 2.401 MB / 0.644 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/1.372, allocations: 0.9543 MB / 0.645 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07932/1.451, allocations: 38.4 MB / 0.6824 GB, free: 97.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0072/1.459, allocations: 4.494 MB / 0.6868 GB, free: 93.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005073/1.464, allocations: 1.363 MB / 0.6882 GB, free: 91.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004014/1.468, allocations: 2.538 MB / 0.6906 GB, free: 89.16 MB / 478.1 MB Notification: Performance of SimCode: time 2.385e-06/1.468, allocations: 4 kB / 0.6906 GB, free: 89.15 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4155/1.883, allocations: 101.1 MB / 0.7894 GB, free: 157.6 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/1.884, allocations: 294.4 kB / 0.7897 GB, free: 157.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.257/6.141, allocations: 0 / 0.7897 GB, free: 157.3 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat