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.001058/0.001058, allocations: 85.66 kB / 16.31 MB, free: 6.449 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.001058/0.001058, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.443/1.443, allocations: 223.3 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.0002854, allocations: 7.812 kB / 300.9 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1284, allocations: 50.43 MB / 351.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03426/0.1628, allocations: 32.61 MB / 384 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02329/0.1861, allocations: 9.286 MB / 393.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008837/0.195, allocations: 247.2 kB / 393.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008535/0.2035, allocations: 1.845 MB / 395.4 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01643/0.22, allocations: 3.227 MB / 398.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007905/0.2279, allocations: 1.499 MB / 400.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02551/0.2534, allocations: 15.47 MB / 415.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3473/0.6008, allocations: 20.37 MB / 435.9 MB, free: 6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01676/0.6176, allocations: 5.181 MB / 441.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01725/0.6349, allocations: 5.861 MB / 447 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005585/0.6406, allocations: 0.7957 MB / 447.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009144/0.6497, allocations: 1.153 MB / 448.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00661/0.6564, allocations: 2.512 MB / 451.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009975/0.6664, allocations: 2.624 MB / 454 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03181/0.6983, allocations: 22.75 MB / 476.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.6983, allocations: 0 / 476.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.718e-06/0.6984, allocations: 0 / 476.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0009759/0.6993, allocations: 2.516 kB / 476.8 MB, free: 10.36 MB / 366.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.04408/0.7434, allocations: 13.36 MB / 490.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.7435, allocations: 8.031 kB / 490.2 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009815/0.7533, allocations: 1.927 MB / 492.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03715/0.7905, allocations: 6.399 MB / 498.5 MB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02353/0.8141, allocations: 8.175 MB / 0.4948 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001784/0.816, allocations: 0.9118 MB / 0.4957 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007016/0.823, allocations: 1.192 MB / 0.4968 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0657/0.8887, allocations: 18.71 MB / 0.5151 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008316/0.8896, allocations: 19.81 kB / 0.5151 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005895/0.8956, allocations: 0.4952 MB / 0.5156 GB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008816/0.8965, allocations: 0.6459 MB / 0.5162 GB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04577/0.9422, allocations: 16.94 MB / 0.5328 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4228/1.365, allocations: 62.78 MB / 0.5941 GB, free: 109.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0261/1.391, allocations: 29.71 MB / 0.6231 GB, free: 86.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007146/1.398, allocations: 4.076 MB / 0.6271 GB, free: 86.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02089/1.419, allocations: 10.21 MB / 0.6371 GB, free: 85.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.862e-05/1.42, allocations: 78.69 kB / 0.6371 GB, free: 85.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=408): time 8.526e-06/1.42, allocations: 3.984 kB / 0.6371 GB, free: 85.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=418): time 0.06096/1.481, allocations: 21.72 MB / 0.6584 GB, free: 78.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/1.481, allocations: 120.2 kB / 0.6585 GB, free: 78.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01315/1.494, allocations: 5.115 MB / 0.6635 GB, free: 75.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001284/1.495, allocations: 92.64 kB / 0.6636 GB, free: 75.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00496/1.5, allocations: 5.35 MB / 0.6688 GB, free: 71.08 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002654/1.503, allocations: 1.444 MB / 0.6702 GB, free: 69.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/1.504, allocations: 130.1 kB / 0.6703 GB, free: 69.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005323/1.504, allocations: 0.5604 MB / 0.6709 GB, free: 69.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006327/1.511, allocations: 2.874 MB / 0.6737 GB, free: 67.69 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009589/1.52, allocations: 5.371 MB / 0.6789 GB, free: 62.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008509/1.529, allocations: 4.037 MB / 0.6829 GB, free: 60.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001831/1.529, allocations: 28.81 kB / 0.6829 GB, free: 60.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02105/1.55, allocations: 9.723 MB / 0.6924 GB, free: 51.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.551, allocations: 40 kB / 0.6924 GB, free: 51.37 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002164/1.551, allocations: 84.59 kB / 0.6925 GB, free: 51.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003201/1.554, allocations: 1.134 MB / 0.6936 GB, free: 50.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005957/1.56, allocations: 1.447 MB / 0.695 GB, free: 48.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/1.573, allocations: 12.5 MB / 0.7072 GB, free: 35.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006034/1.579, allocations: 359.6 kB / 0.7076 GB, free: 35.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001463/1.581, allocations: 327.9 kB / 0.7079 GB, free: 34.99 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (767): * Single equations (assignments): 758 * 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,48.0%) 46,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009252/1.59, allocations: 4.235 MB / 0.712 GB, free: 30.74 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/1.592, allocations: 0.5286 MB / 0.7125 GB, free: 30.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.603, allocations: 7.187 MB / 0.7196 GB, free: 22.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005773/1.609, allocations: 4.282 MB / 0.7237 GB, free: 18.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.786e-05/1.609, allocations: 16 kB / 0.7237 GB, free: 18.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.021e-05/1.609, allocations: 19.92 kB / 0.7238 GB, free: 18.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03196/1.641, allocations: 17.06 MB / 0.7404 GB, free: 1.359 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/1.641, allocations: 8 kB / 0.7404 GB, free: 1.352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002988/1.644, allocations: 0.6904 MB / 0.7411 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003261/1.648, allocations: 1.179 MB / 0.7423 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006161/1.648, allocations: 99.97 kB / 0.7424 GB, free: 15.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2609/1.909, allocations: 16.01 MB / 0.758 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/1.909, allocations: 12.75 kB / 0.758 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02044/1.93, allocations: 10.39 MB / 0.7681 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003563/1.933, allocations: 1.133 MB / 0.7693 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/1.935, allocations: 82.16 kB / 0.7693 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/1.938, allocations: 222.3 kB / 0.7695 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008388/1.939, allocations: 304.6 kB / 0.7698 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003306/1.939, allocations: 123.9 kB / 0.77 GB, free: 130.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006274/1.946, allocations: 3.422 MB / 0.7733 GB, free: 130.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.946, allocations: 1.75 kB / 0.7733 GB, free: 130.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008991/1.955, allocations: 1.961 MB / 0.7752 GB, free: 130.1 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 (356): * Single equations (assignments): 346 * 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%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01685/1.972, allocations: 11.15 MB / 0.7861 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01297/1.985, allocations: 7.76 MB / 0.7937 GB, free: 123.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.985, allocations: 3.969 kB / 0.7937 GB, free: 123.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006779/1.991, allocations: 4.151 MB / 0.7977 GB, free: 121.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01088/2.002, allocations: 1.38 MB / 0.7991 GB, free: 120.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1378/2.14, allocations: 61.47 MB / 0.8591 GB, free: 69.02 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01336/2.154, allocations: 7.368 MB / 0.8663 GB, free: 61.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007889/2.162, allocations: 2.001 MB / 0.8683 GB, free: 59.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007734/2.169, allocations: 4.391 MB / 0.8726 GB, free: 55.23 MB / 478.1 MB Notification: Performance of SimCode: time 1.282e-06/2.169, allocations: 384 / 0.8726 GB, free: 55.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4634/2.633, allocations: 153 MB / 1.022 GB, free: 98.87 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/2.633, allocations: 278.3 kB / 1.022 GB, free: 98.51 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.549/8.182, allocations: 6.094 kB / 1.022 GB, free: 98.51 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