Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0009313/0.0009312, allocations: 99.11 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 192.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002546, allocations: 8 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1287, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.3194/0.4481, allocations: 33.18 MB / 391.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03007/0.4782, allocations: 9.502 MB / 401 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01139/0.4897, allocations: 255.1 kB / 401.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0103/0.5, allocations: 1.849 MB / 403.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01703/0.5171, allocations: 3.239 MB / 406.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008068/0.5252, allocations: 1.513 MB / 407.9 MB, free: 7.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02803/0.5532, allocations: 15.66 MB / 423.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04716/0.6004, allocations: 20.38 MB / 443.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01409/0.6146, allocations: 5.182 MB / 449.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01442/0.629, allocations: 5.875 MB / 455 MB, free: 12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005208/0.6343, allocations: 0.7969 MB / 455.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008415/0.6427, allocations: 1.179 MB / 456.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005626/0.6484, allocations: 2.515 MB / 459.5 MB, free: 7.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007484/0.6559, allocations: 2.632 MB / 462.1 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03055/0.6865, allocations: 22.68 MB / 484.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.6865, allocations: 3.984 kB / 484.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.6866, allocations: 0 / 484.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009307/0.6875, allocations: 0 / 484.8 MB, free: 14.11 MB / 398.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.04437/0.7319, allocations: 13.4 MB / 498.2 MB, free: 0.5859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.732, allocations: 8.031 kB / 498.2 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008986/0.741, allocations: 1.938 MB / 0.4884 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0366/0.7776, allocations: 6.442 MB / 0.4947 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0246/0.8022, allocations: 8.19 MB / 0.5027 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001249/0.8035, allocations: 0.9072 MB / 0.5036 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005877/0.8094, allocations: 1.195 MB / 0.5048 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05863/0.8681, allocations: 18.7 MB / 0.523 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007275/0.8688, allocations: 27.83 kB / 0.523 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004631/0.8735, allocations: 0.4921 MB / 0.5235 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000783/0.8743, allocations: 0.6537 MB / 0.5242 GB, free: 9.805 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5116/1.386, allocations: 16.93 MB / 0.5407 GB, free: 120 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.11/1.496, allocations: 64.12 MB / 0.6033 GB, free: 75.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0223/1.518, allocations: 30.01 MB / 0.6326 GB, free: 41.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006832/1.525, allocations: 4.101 MB / 0.6366 GB, free: 37.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01726/1.542, allocations: 10.5 MB / 0.6469 GB, free: 27.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/1.542, allocations: 81.81 kB / 0.647 GB, free: 27.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.289e-06/1.542, allocations: 4 kB / 0.647 GB, free: 27.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.04872/1.591, allocations: 21.71 MB / 0.6682 GB, free: 5.098 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/1.591, allocations: 120.4 kB / 0.6683 GB, free: 4.957 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007482/1.599, allocations: 5.135 MB / 0.6733 GB, free: 15.83 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009592/1.6, allocations: 97.69 kB / 0.6734 GB, free: 15.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004318/1.604, allocations: 5.358 MB / 0.6786 GB, free: 10.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002209/1.606, allocations: 1.442 MB / 0.68 GB, free: 8.906 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000437/1.607, allocations: 132 kB / 0.6802 GB, free: 8.777 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004724/1.607, allocations: 0.5668 MB / 0.6807 GB, free: 8.203 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005488/1.613, allocations: 2.866 MB / 0.6835 GB, free: 5.332 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006614/1.619, allocations: 5.373 MB / 0.6888 GB, free: 14.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006417/1.626, allocations: 4.043 MB / 0.6927 GB, free: 10.74 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.818e-05/1.626, allocations: 24 kB / 0.6927 GB, free: 10.71 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01884/1.645, allocations: 9.73 MB / 0.7022 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.1e-05/1.645, allocations: 40 kB / 0.7023 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000174/1.645, allocations: 84 kB / 0.7023 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/1.648, allocations: 1.133 MB / 0.7035 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005915/1.654, allocations: 1.447 MB / 0.7049 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01569/1.67, allocations: 12.52 MB / 0.7171 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005999/1.676, allocations: 359.5 kB / 0.7174 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001511/1.677, allocations: 320 kB / 0.7177 GB, free: 488 kB / 494.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.3222/2, allocations: 4.229 MB / 0.7219 GB, free: 153.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002047/2.002, allocations: 0.5339 MB / 0.7224 GB, free: 153.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01703/2.019, allocations: 7.186 MB / 0.7294 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009564/2.028, allocations: 4.291 MB / 0.7336 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.914e-05/2.029, allocations: 18.03 kB / 0.7336 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001067/2.029, allocations: 21.48 kB / 0.7336 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03496/2.064, allocations: 17.07 MB / 0.7503 GB, free: 142.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-05/2.064, allocations: 3.844 kB / 0.7503 GB, free: 142.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/2.067, allocations: 0.6894 MB / 0.751 GB, free: 142.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003138/2.07, allocations: 1.174 MB / 0.7521 GB, free: 142.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006098/2.07, allocations: 104.1 kB / 0.7522 GB, free: 142.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01604/2.087, allocations: 16.02 MB / 0.7679 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/2.087, allocations: 7.719 kB / 0.7679 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01691/2.103, allocations: 10.39 MB / 0.778 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003348/2.107, allocations: 1.136 MB / 0.7791 GB, free: 123.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/2.108, allocations: 87.56 kB / 0.7792 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003072/2.111, allocations: 222 kB / 0.7794 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008071/2.112, allocations: 307.3 kB / 0.7797 GB, free: 122.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002939/2.113, allocations: 125.8 kB / 0.7798 GB, free: 122.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006182/2.119, allocations: 3.435 MB / 0.7832 GB, free: 119.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/2.119, allocations: 0 / 0.7832 GB, free: 119.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009902/2.129, allocations: 1.966 MB / 0.7851 GB, free: 117.8 MB / 494.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.01603/2.145, allocations: 11.15 MB / 0.796 GB, free: 107.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01213/2.157, allocations: 7.755 MB / 0.8036 GB, free: 99.79 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/2.157, allocations: 0 / 0.8036 GB, free: 99.79 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007011/2.164, allocations: 4.143 MB / 0.8076 GB, free: 95.58 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0103/2.174, allocations: 1.39 MB / 0.809 GB, free: 94.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1388/2.313, allocations: 61.71 MB / 0.8693 GB, free: 29.06 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009804/2.323, allocations: 7.374 MB / 0.8765 GB, free: 21.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006173/2.329, allocations: 2.009 MB / 0.8784 GB, free: 19.63 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006539/2.336, allocations: 4.404 MB / 0.8827 GB, free: 15.23 MB / 494.1 MB Notification: Performance of SimCode: time 1.472e-06/2.336, allocations: 0 / 0.8827 GB, free: 15.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4059/2.742, allocations: 153.4 MB / 1.033 GB, free: 37.48 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/2.742, allocations: 263.1 kB / 1.033 GB, free: 37.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.909/8.651, allocations: 0 / 1.033 GB, free: 37.13 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat