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.001149/0.001149, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.00103/0.00103, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.438/1.438, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.0002772, allocations: 5.469 kB / 300.8 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1233, allocations: 50.43 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02577/0.1491, allocations: 24.22 MB / 375.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01779/0.1669, allocations: 8.298 MB / 383.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00595/0.1729, allocations: 159.5 kB / 383.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006499/0.1794, allocations: 1.582 MB / 385.5 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01317/0.1926, allocations: 3.093 MB / 388.6 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006295/0.1989, allocations: 1.283 MB / 389.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01452/0.2135, allocations: 7.279 MB / 397.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01794/0.2314, allocations: 9.909 MB / 407.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005981/0.2375, allocations: 2.897 MB / 410 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006873/0.2444, allocations: 3.249 MB / 413.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002446/0.2468, allocations: 472 kB / 413.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003881/0.2507, allocations: 0.7418 MB / 414.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.2529, allocations: 1.491 MB / 415.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004509/0.2574, allocations: 1.592 MB / 417.5 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2884/0.5459, allocations: 13.09 MB / 430.6 MB, free: 18.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.5459, allocations: 0 / 430.6 MB, free: 18.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5459, allocations: 0.9062 kB / 430.6 MB, free: 18.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005459/0.5465, allocations: 0.5 kB / 430.6 MB, free: 18.04 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.02639/0.5729, allocations: 8.189 MB / 438.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.5729, allocations: 8.938 kB / 438.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005787/0.5787, allocations: 1.148 MB / 439.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03115/0.6099, allocations: 5.178 MB / 445.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01643/0.6264, allocations: 4.933 MB / 450.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006806/0.6271, allocations: 0.5326 MB / 450.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003831/0.631, allocations: 0.7104 MB / 451.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03453/0.6655, allocations: 11.2 MB / 462.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006597/0.6662, allocations: 13.06 kB / 462.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004006/0.6702, allocations: 301 kB / 462.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006167/0.6709, allocations: 450.4 kB / 463.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/0.6984, allocations: 10.76 MB / 474 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08224/0.7806, allocations: 38.04 MB / 0.5 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02463/0.8053, allocations: 28.06 MB / 0.5274 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0192/0.8246, allocations: 7.9 MB / 0.5352 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.058e-05/0.8247, allocations: 60.12 kB / 0.5352 GB, free: 10.17 MB / 430.1 MB Notification: Performance of pre-optimization done (n=222): time 4.458e-06/0.8247, allocations: 4 kB / 0.5352 GB, free: 10.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=238): time 0.02244/0.8471, allocations: 10.41 MB / 0.5454 GB, free: 15.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002016/0.8492, allocations: 1.927 MB / 0.5473 GB, free: 13.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008221/0.8574, allocations: 3.677 MB / 0.5509 GB, free: 10.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004081/0.8579, allocations: 65.7 kB / 0.5509 GB, free: 9.957 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003479/0.8614, allocations: 3.555 MB / 0.5544 GB, free: 6.383 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00131/0.8627, allocations: 0.8425 MB / 0.5552 GB, free: 5.547 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005048/0.8632, allocations: 104 kB / 0.5553 GB, free: 5.445 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004869/0.8637, allocations: 0.4931 MB / 0.5558 GB, free: 4.945 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003523/0.8673, allocations: 1.895 MB / 0.5577 GB, free: 3.043 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005539/0.8728, allocations: 4.434 MB / 0.562 GB, free: 13.39 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004664/0.8775, allocations: 2.852 MB / 0.5648 GB, free: 10.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.082e-05/0.8776, allocations: 24 kB / 0.5648 GB, free: 10.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.0124/0.89, allocations: 7.034 MB / 0.5717 GB, free: 4.094 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.213e-05/0.8901, allocations: 47.95 kB / 0.5717 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/0.8903, allocations: 88.84 kB / 0.5718 GB, free: 3.961 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/0.8924, allocations: 0.7473 MB / 0.5725 GB, free: 3.207 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/0.8961, allocations: 1.144 MB / 0.5736 GB, free: 2.152 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007126/0.9033, allocations: 5.383 MB / 0.5789 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/0.9073, allocations: 315 kB / 0.5792 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007013/0.908, allocations: 277.9 kB / 0.5795 GB, free: 12.11 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 403 * 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 (603): * Single equations (assignments): 600 * 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.005045/0.9131, allocations: 2.535 MB / 0.5819 GB, free: 9.648 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/0.9143, allocations: 390 kB / 0.5823 GB, free: 9.266 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008035/0.9223, allocations: 4.3 MB / 0.5865 GB, free: 4.926 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.005e-05/0.9224, allocations: 28 kB / 0.5865 GB, free: 4.898 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.9224, allocations: 8 kB / 0.5865 GB, free: 4.891 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.496e-05/0.9224, allocations: 11.95 kB / 0.5866 GB, free: 4.879 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2779/1.2, allocations: 14.32 MB / 0.6005 GB, free: 165.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.649e-05/1.2, allocations: 10.97 kB / 0.6006 GB, free: 165.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/1.202, allocations: 498.4 kB / 0.601 GB, free: 165.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/1.204, allocations: 0.6932 MB / 0.6017 GB, free: 165.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001929/1.205, allocations: 70.05 kB / 0.6018 GB, free: 165.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007795/1.212, allocations: 7.088 MB / 0.6087 GB, free: 160.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001463/1.214, allocations: 1.871 MB / 0.6105 GB, free: 159.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/1.224, allocations: 8.127 MB / 0.6185 GB, free: 154.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0024/1.227, allocations: 0.7884 MB / 0.6192 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007688/1.227, allocations: 67.14 kB / 0.6193 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/1.229, allocations: 170.9 kB / 0.6195 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/1.23, allocations: 233.2 kB / 0.6197 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.23, allocations: 90.89 kB / 0.6198 GB, free: 154.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003979/1.234, allocations: 2.397 MB / 0.6221 GB, free: 153.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/1.234, allocations: 0 / 0.6221 GB, free: 153.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00626/1.24, allocations: 1.289 MB / 0.6234 GB, free: 153 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (249): * Single equations (assignments): 246 * 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.009989/1.25, allocations: 11.61 MB / 0.6347 GB, free: 144.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007606/1.258, allocations: 5.169 MB / 0.6397 GB, free: 140.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/1.258, allocations: 0 / 0.6397 GB, free: 140.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003667/1.262, allocations: 2.431 MB / 0.6421 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005299/1.267, allocations: 0.9126 MB / 0.643 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09583/1.363, allocations: 98.52 MB / 0.7392 GB, free: 35.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00469/1.367, allocations: 4.624 MB / 0.7437 GB, free: 30.93 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004319/1.372, allocations: 1.404 MB / 0.7451 GB, free: 29.52 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003376/1.375, allocations: 2.561 MB / 0.7476 GB, free: 26.96 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/1.375, allocations: 8 kB / 0.7476 GB, free: 26.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3929/1.768, allocations: 100.3 MB / 0.8455 GB, free: 113.8 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/1.768, allocations: 283.7 kB / 0.8458 GB, free: 113.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.122/5.891, allocations: 0 / 0.8458 GB, free: 113.4 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