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_Mains.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_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.0012/0.0012, allocations: 96.48 kB / 16.3 MB, free: 5.996 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.001277/0.001277, allocations: 183.2 kB / 17.2 MB, free: 5.914 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.437/1.437, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002877, allocations: 8.672 kB / 300.8 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03118/0.1526, allocations: 29.84 MB / 381.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0224/0.175, allocations: 9.632 MB / 390.7 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007935/0.183, allocations: 235.2 kB / 391 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009091/0.1921, allocations: 1.99 MB / 393 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01551/0.2077, allocations: 3.421 MB / 396.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008394/0.2161, allocations: 1.54 MB / 397.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02342/0.2395, allocations: 11.21 MB / 409.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3128/0.5524, allocations: 20.18 MB / 429.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01569/0.5681, allocations: 4.809 MB / 434.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01479/0.583, allocations: 5.317 MB / 439.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005243/0.5883, allocations: 0.7873 MB / 440.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009254/0.5975, allocations: 1.091 MB / 441.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006923/0.6045, allocations: 2.423 MB / 443.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007842/0.6124, allocations: 2.629 MB / 446.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02767/0.6401, allocations: 22.62 MB / 469 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.6401, allocations: 0 / 469 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.6401, allocations: 64 / 469 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.001092/0.6412, allocations: 0 / 469 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04622/0.6875, allocations: 13.29 MB / 482.3 MB, free: 9.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.6875, allocations: 8.969 kB / 482.3 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009657/0.6972, allocations: 1.921 MB / 484.2 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03853/0.7357, allocations: 6.321 MB / 490.5 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02368/0.7595, allocations: 8.212 MB / 498.7 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00103/0.7605, allocations: 0.8974 MB / 499.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006119/0.7667, allocations: 1.198 MB / 0.4891 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06137/0.828, allocations: 18.6 MB / 0.5072 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007803/0.8289, allocations: 15.75 kB / 0.5073 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005186/0.8341, allocations: 0.4908 MB / 0.5077 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007872/0.8349, allocations: 0.6576 MB / 0.5084 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03957/0.8745, allocations: 16.94 MB / 0.5249 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4289/1.303, allocations: 62.68 MB / 0.5861 GB, free: 118.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02972/1.333, allocations: 29.69 MB / 0.6151 GB, free: 95.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02405/1.357, allocations: 9.865 MB / 0.6248 GB, free: 94.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.632e-05/1.357, allocations: 81.03 kB / 0.6248 GB, free: 94.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=416): time 1.051e-05/1.357, allocations: 0 / 0.6248 GB, free: 94.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=426): time 0.05346/1.411, allocations: 20.57 MB / 0.6449 GB, free: 88.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/1.411, allocations: 125.9 kB / 0.645 GB, free: 88.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/1.423, allocations: 5.005 MB / 0.6499 GB, free: 86.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009724/1.424, allocations: 99.14 kB / 0.65 GB, free: 86.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003757/1.428, allocations: 5.332 MB / 0.6552 GB, free: 82.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/1.43, allocations: 1.465 MB / 0.6567 GB, free: 81.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/1.431, allocations: 134.3 kB / 0.6568 GB, free: 81.07 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005802/1.432, allocations: 0.5683 MB / 0.6574 GB, free: 80.65 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005228/1.437, allocations: 2.895 MB / 0.6602 GB, free: 79.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006475/1.443, allocations: 5.374 MB / 0.6654 GB, free: 75.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006731/1.45, allocations: 4.076 MB / 0.6694 GB, free: 73.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.99e-05/1.45, allocations: 23.38 kB / 0.6694 GB, free: 73.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=841) (initialization): time 0.01923/1.469, allocations: 9.785 MB / 0.679 GB, free: 68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/1.47, allocations: 40.77 kB / 0.679 GB, free: 67.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/1.47, allocations: 84 kB / 0.6791 GB, free: 67.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003003/1.473, allocations: 1.116 MB / 0.6802 GB, free: 66.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005782/1.479, allocations: 1.474 MB / 0.6816 GB, free: 65.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01485/1.494, allocations: 12.74 MB / 0.6941 GB, free: 52.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007205/1.501, allocations: 359.4 kB / 0.6944 GB, free: 51.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001995/1.503, allocations: 328 kB / 0.6947 GB, free: 51.34 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * 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 (774): * Single equations (assignments): 765 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(10,52.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01151/1.514, allocations: 4.227 MB / 0.6989 GB, free: 47.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002369/1.517, allocations: 0.5287 MB / 0.6994 GB, free: 46.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/1.532, allocations: 7.273 MB / 0.7065 GB, free: 39.19 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007348/1.54, allocations: 4.322 MB / 0.7107 GB, free: 34.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.297e-05/1.54, allocations: 12 kB / 0.7107 GB, free: 34.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001012/1.54, allocations: 27.91 kB / 0.7107 GB, free: 34.78 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04352/1.584, allocations: 17.17 MB / 0.7275 GB, free: 17.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.851e-05/1.584, allocations: 4 kB / 0.7275 GB, free: 17.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003794/1.587, allocations: 0.7021 MB / 0.7282 GB, free: 16.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003943/1.591, allocations: 1.172 MB / 0.7293 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/1.593, allocations: 103.9 kB / 0.7294 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01783/1.61, allocations: 16.28 MB / 0.7453 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/1.61, allocations: 4 kB / 0.7453 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0206/1.631, allocations: 11.15 MB / 0.7562 GB, free: 2.988 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004202/1.635, allocations: 1.131 MB / 0.7573 GB, free: 1.832 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00207/1.637, allocations: 80 kB / 0.7574 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005264/1.643, allocations: 227.7 kB / 0.7576 GB, free: 1.531 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001688/1.644, allocations: 305 kB / 0.7579 GB, free: 1.234 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001031/1.645, allocations: 128 kB / 0.758 GB, free: 1.109 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.2923/1.938, allocations: 3.337 MB / 0.7613 GB, free: 133.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.112e-06/1.938, allocations: 0 / 0.7613 GB, free: 133.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01076/1.949, allocations: 1.956 MB / 0.7632 GB, free: 133.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi) * 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 (364): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01938/1.968, allocations: 12.88 MB / 0.7758 GB, free: 130.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01386/1.982, allocations: 7.818 MB / 0.7834 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.989e-05/1.982, allocations: 2.062 kB / 0.7834 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007284/1.989, allocations: 4.162 MB / 0.7875 GB, free: 127.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007322/1.997, allocations: 1.303 MB / 0.7888 GB, free: 127.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1939/2.191, allocations: 116.8 MB / 0.9029 GB, free: 23.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01398/2.205, allocations: 7.566 MB / 0.9103 GB, free: 18.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00735/2.212, allocations: 2.001 MB / 0.9122 GB, free: 16.24 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008381/2.22, allocations: 4.373 MB / 0.9165 GB, free: 11.87 MB / 478.1 MB Notification: Performance of SimCode: time 1.793e-06/2.221, allocations: 0 / 0.9165 GB, free: 11.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4447/2.665, allocations: 152.1 MB / 1.065 GB, free: 67.77 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/2.665, allocations: 260.1 kB / 1.065 GB, free: 67.42 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.602/8.267, allocations: 0 / 1.065 GB, free: 67.42 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_Mains_res.mat does not exist to compare? outputFormat=mat