Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.0009338/0.0009338, allocations: 99.77 kB / 16.96 MB, free: 6.098 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.0009151/0.000915, allocations: 179 kB / 17.84 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005833/0.0005835, allocations: 16 kB / 280.9 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1166, allocations: 47.57 MB / 328.5 MB, free: 3.938 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03492/0.1515, allocations: 32.69 MB / 361.2 MB, free: 3.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02349/0.1751, allocations: 9.283 MB / 370.5 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008016/0.1832, allocations: 219.2 kB / 370.7 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008395/0.1916, allocations: 1.841 MB / 372.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01352/0.2052, allocations: 3.28 MB / 375.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006689/0.2119, allocations: 1.52 MB / 377.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.238/0.4499, allocations: 15.65 MB / 393 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03773/0.4877, allocations: 20.39 MB / 413.3 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01046/0.4982, allocations: 5.239 MB / 418.6 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01285/0.5111, allocations: 5.963 MB / 424.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004385/0.5156, allocations: 0.8007 MB / 425.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00735/0.5229, allocations: 1.16 MB / 426.5 MB, free: 288 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005435/0.5284, allocations: 2.569 MB / 429.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007122/0.5356, allocations: 2.656 MB / 431.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02985/0.5655, allocations: 22.65 MB / 454.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.5655, allocations: 4 kB / 454.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.5655, allocations: 0 / 454.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000962/0.5665, allocations: 2.734 kB / 454.4 MB, free: 8.543 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.04388/0.6104, allocations: 13.5 MB / 467.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.6105, allocations: 8.031 kB / 467.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008171/0.6186, allocations: 1.959 MB / 469.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0396/0.6583, allocations: 7.385 MB / 477.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0198/0.6781, allocations: 7.58 MB / 484.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001219/0.6794, allocations: 0.9149 MB / 485.7 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005437/0.6848, allocations: 1.218 MB / 487 MB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0579/0.7428, allocations: 19.17 MB / 0.4943 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007989/0.7436, allocations: 15.91 kB / 0.4943 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004647/0.7483, allocations: 0.4996 MB / 0.4948 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000938/0.7493, allocations: 0.6815 MB / 0.4954 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04419/0.7935, allocations: 17.61 MB / 0.5126 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.541/1.334, allocations: 64.05 MB / 0.5752 GB, free: 89.78 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02887/1.363, allocations: 38.64 MB / 0.6129 GB, free: 52.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006831/1.37, allocations: 4.264 MB / 0.6171 GB, free: 49.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02349/1.394, allocations: 12.35 MB / 0.6291 GB, free: 41.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.451e-05/1.394, allocations: 76.09 kB / 0.6292 GB, free: 41.56 MB / 430.1 MB Notification: Performance of pre-optimization done (n=408): time 8.396e-06/1.394, allocations: 0 / 0.6292 GB, free: 41.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=418): time 0.0495/1.443, allocations: 21.77 MB / 0.6505 GB, free: 20.33 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/1.444, allocations: 120.4 kB / 0.6506 GB, free: 20.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/1.454, allocations: 5.265 MB / 0.6557 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001014/1.455, allocations: 89.7 kB / 0.6558 GB, free: 14.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003403/1.458, allocations: 5.494 MB / 0.6612 GB, free: 9.324 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001941/1.46, allocations: 1.446 MB / 0.6626 GB, free: 7.891 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00104/1.461, allocations: 136 kB / 0.6627 GB, free: 7.758 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0006006/1.462, allocations: 0.5832 MB / 0.6633 GB, free: 7.168 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005376/1.467, allocations: 2.926 MB / 0.6661 GB, free: 4.238 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007258/1.475, allocations: 5.66 MB / 0.6717 GB, free: 13.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008579/1.483, allocations: 4.164 MB / 0.6757 GB, free: 9.125 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/1.483, allocations: 28 kB / 0.6758 GB, free: 9.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.02431/1.508, allocations: 10.03 MB / 0.6856 GB, free: 14.99 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/1.508, allocations: 44 kB / 0.6856 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/1.508, allocations: 92 kB / 0.6857 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003312/1.512, allocations: 1.15 MB / 0.6868 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006282/1.518, allocations: 1.529 MB / 0.6883 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2741/1.792, allocations: 12.49 MB / 0.7005 GB, free: 140.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006773/1.799, allocations: 370.9 kB / 0.7009 GB, free: 140.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001835/1.801, allocations: 349.1 kB / 0.7012 GB, free: 140.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (806): * Single equations (assignments): 797 * 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,53.0%) 46,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01078/1.811, allocations: 4.293 MB / 0.7054 GB, free: 140.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/1.813, allocations: 0.5385 MB / 0.7059 GB, free: 140.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01682/1.83, allocations: 7.215 MB / 0.713 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007249/1.837, allocations: 4.289 MB / 0.7171 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.358e-05/1.838, allocations: 23.36 kB / 0.7172 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.729e-05/1.838, allocations: 26.78 kB / 0.7172 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03079/1.868, allocations: 17.14 MB / 0.7339 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/1.868, allocations: 8.875 kB / 0.7339 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002729/1.871, allocations: 0.6825 MB / 0.7346 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002858/1.874, allocations: 1.179 MB / 0.7358 GB, free: 129.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004887/1.875, allocations: 98.86 kB / 0.7358 GB, free: 129.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01481/1.889, allocations: 16 MB / 0.7515 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.889, allocations: 9.562 kB / 0.7515 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/1.904, allocations: 10.4 MB / 0.7616 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003182/1.908, allocations: 1.149 MB / 0.7628 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001425/1.909, allocations: 80.19 kB / 0.7628 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002978/1.912, allocations: 223.1 kB / 0.763 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000695/1.913, allocations: 310.6 kB / 0.7633 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/1.913, allocations: 120 kB / 0.7635 GB, free: 107.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006018/1.919, allocations: 3.507 MB / 0.7669 GB, free: 104.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.41e-07/1.919, allocations: 0 / 0.7669 GB, free: 104.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009995/1.929, allocations: 1.998 MB / 0.7688 GB, free: 102.4 MB / 462.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,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01747/1.947, allocations: 11.16 MB / 0.7797 GB, free: 91.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01309/1.96, allocations: 7.884 MB / 0.7874 GB, free: 83.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-05/1.96, allocations: 7.938 kB / 0.7874 GB, free: 83.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007719/1.967, allocations: 4.14 MB / 0.7915 GB, free: 78.92 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009726/1.977, allocations: 1.377 MB / 0.7928 GB, free: 77.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1387/2.116, allocations: 62.86 MB / 0.8542 GB, free: 11.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009963/2.126, allocations: 7.451 MB / 0.8615 GB, free: 3.613 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007429/2.133, allocations: 2.092 MB / 0.8635 GB, free: 1.512 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008586/2.142, allocations: 4.391 MB / 0.8678 GB, free: 13.12 MB / 478.1 MB Notification: Performance of SimCode: time 1.313e-06/2.142, allocations: 0 / 0.8678 GB, free: 13.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4805/2.623, allocations: 155 MB / 1.019 GB, free: 23.2 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/2.623, allocations: 274.3 kB / 1.019 GB, free: 22.83 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.765/8.388, allocations: 0 / 1.019 GB, free: 22.83 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat