Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001014/0.001013, allocations: 99.41 kB / 16.99 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.001028/0.001029, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002925/0.0002927, allocations: 8 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.09906, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.184/0.2831, allocations: 33.53 MB / 391.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01998/0.3031, allocations: 10.76 MB / 402.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006644/0.3098, allocations: 273.8 kB / 402.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00763/0.3175, allocations: 2.214 MB / 405 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.3305, allocations: 3.737 MB / 408.7 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006223/0.3368, allocations: 1.877 MB / 410.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01695/0.3537, allocations: 10.4 MB / 421 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03434/0.3881, allocations: 19.91 MB / 440.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007314/0.3955, allocations: 4.629 MB / 445.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008217/0.4037, allocations: 5.318 MB / 450.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002734/0.4065, allocations: 0.7695 MB / 451.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005176/0.4117, allocations: 1.105 MB / 452.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004258/0.416, allocations: 2.43 MB / 455.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007265/0.4232, allocations: 2.593 MB / 457.8 MB, free: 8.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02555/0.4488, allocations: 22.1 MB / 479.9 MB, free: 2.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4489, allocations: 0 / 479.9 MB, free: 2.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4489, allocations: 0 / 479.9 MB, free: 2.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007969/0.4497, allocations: 0 / 479.9 MB, free: 2.41 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03638/0.4861, allocations: 12.89 MB / 492.8 MB, free: 5.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.833e-05/0.4861, allocations: 12.03 kB / 492.8 MB, free: 5.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008191/0.4943, allocations: 1.752 MB / 494.5 MB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03493/0.5293, allocations: 6.13 MB / 0.4889 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02259/0.5519, allocations: 7.942 MB / 0.4967 GB, free: 5.461 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001691/0.5537, allocations: 0.9389 MB / 0.4976 GB, free: 4.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008369/0.5621, allocations: 1.226 MB / 0.4988 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05276/0.6149, allocations: 18.81 MB / 0.5172 GB, free: 388 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004974/0.6154, allocations: 23.75 kB / 0.5172 GB, free: 364 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003345/0.6188, allocations: 0.5039 MB / 0.5177 GB, free: 15.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006839/0.6195, allocations: 0.6621 MB / 0.5183 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3713/0.9907, allocations: 16.92 MB / 0.5348 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08072/1.071, allocations: 61.44 MB / 0.5948 GB, free: 79.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0169/1.088, allocations: 33.43 MB / 0.6275 GB, free: 46.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01442/1.103, allocations: 9.129 MB / 0.6364 GB, free: 37.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/1.103, allocations: 73.47 kB / 0.6365 GB, free: 37.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=371): time 4.739e-06/1.103, allocations: 4 kB / 0.6365 GB, free: 37.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=413): time 0.02716/1.13, allocations: 18.07 MB / 0.6541 GB, free: 19.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/1.13, allocations: 98.66 kB / 0.6542 GB, free: 19.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005301/1.135, allocations: 5.099 MB / 0.6592 GB, free: 14.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003281/1.136, allocations: 93.7 kB / 0.6593 GB, free: 13.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/1.138, allocations: 5.617 MB / 0.6648 GB, free: 8.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007888/1.139, allocations: 1.437 MB / 0.6662 GB, free: 6.895 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002786/1.139, allocations: 144 kB / 0.6663 GB, free: 6.754 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002369/1.139, allocations: 0.5797 MB / 0.6669 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003377/1.143, allocations: 2.969 MB / 0.6698 GB, free: 3.195 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004792/1.147, allocations: 5.973 MB / 0.6756 GB, free: 11.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005132/1.153, allocations: 4.309 MB / 0.6798 GB, free: 7.465 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.776e-05/1.153, allocations: 31.94 kB / 0.6798 GB, free: 7.434 MB / 462.1 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.01497/1.168, allocations: 10.07 MB / 0.6897 GB, free: 13.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.981e-05/1.168, allocations: 49.09 kB / 0.6897 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001668/1.168, allocations: 104 kB / 0.6898 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/1.17, allocations: 0.9457 MB / 0.6908 GB, free: 12.19 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005971/1.176, allocations: 1.65 MB / 0.6924 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.187, allocations: 9.676 MB / 0.7018 GB, free: 456 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005249/1.192, allocations: 419.3 kB / 0.7022 GB, free: 36 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001175/1.193, allocations: 365.5 kB / 0.7026 GB, free: 15.68 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * 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 (848): * Single equations (assignments): 843 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00792/1.201, allocations: 4.308 MB / 0.7068 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.203, allocations: 0.5519 MB / 0.7073 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/1.213, allocations: 6.742 MB / 0.7139 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/1.213, allocations: 44 kB / 0.7139 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/1.213, allocations: 8 kB / 0.7139 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.03e-05/1.213, allocations: 23.91 kB / 0.714 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2208/1.434, allocations: 16.35 MB / 0.7299 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/1.434, allocations: 4.516 kB / 0.7299 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/1.438, allocations: 0.7898 MB / 0.7307 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/1.44, allocations: 0.7804 MB / 0.7315 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/1.44, allocations: 90.64 kB / 0.7316 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008682/1.449, allocations: 8.853 MB / 0.7402 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/1.449, allocations: 7.688 kB / 0.7402 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/1.462, allocations: 10.4 MB / 0.7504 GB, free: 141.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002703/1.464, allocations: 1.108 MB / 0.7515 GB, free: 141.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009787/1.465, allocations: 78.45 kB / 0.7515 GB, free: 141.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002403/1.468, allocations: 231 kB / 0.7518 GB, free: 141.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005161/1.468, allocations: 285.3 kB / 0.752 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002376/1.469, allocations: 115.5 kB / 0.7521 GB, free: 141.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004931/1.474, allocations: 3.384 MB / 0.7554 GB, free: 140.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.474, allocations: 0 / 0.7554 GB, free: 140.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006863/1.48, allocations: 1.948 MB / 0.7573 GB, free: 139.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (394): * Single equations (assignments): 389 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01184/1.492, allocations: 11.92 MB / 0.769 GB, free: 131.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009436/1.502, allocations: 7.849 MB / 0.7766 GB, free: 125 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/1.502, allocations: 6.844 kB / 0.7767 GB, free: 125 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0046/1.506, allocations: 3.675 MB / 0.7802 GB, free: 121.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005027/1.511, allocations: 1.273 MB / 0.7815 GB, free: 120.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.262/1.773, allocations: 131.1 MB / 0.9095 GB, free: 153.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0092/1.783, allocations: 7.635 MB / 0.9169 GB, free: 150.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006711/1.789, allocations: 2.231 MB / 0.9191 GB, free: 150.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007752/1.797, allocations: 4.527 MB / 0.9235 GB, free: 146.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/1.797, allocations: 0 / 0.9235 GB, free: 146.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.195/1.992, allocations: 148.8 MB / 1.069 GB, free: 10.93 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/1.993, allocations: 270.5 kB / 1.069 GB, free: 10.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.855/7.848, allocations: 0 / 1.069 GB, free: 10.57 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat