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_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 221.4 MB / 235.5 MB, free: 2.879 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 102 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.455e-05, allocations: 7.984 kB / 344 MB, free: 4.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1277, allocations: 50.41 MB / 394.4 MB, free: 1.715 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5079/0.6356, allocations: 163.9 MB / 0.5452 GB, free: 3.344 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/0.6361, allocations: 109.7 kB / 0.5453 GB, free: 3.238 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.802/2.438, allocations: 386.2 MB / 0.9224 GB, free: 34.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.394e-06/2.438, allocations: 0 / 0.9224 GB, free: 34.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001351/2.439, allocations: 286.7 kB / 0.9227 GB, free: 34.81 MB / 458.7 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.04517/2.484, allocations: 11.02 MB / 0.9335 GB, free: 31.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/2.484, allocations: 11.47 kB / 0.9335 GB, free: 31.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009578/2.494, allocations: 1.735 MB / 0.9352 GB, free: 31.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02758/2.522, allocations: 4.479 MB / 0.9395 GB, free: 30.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03046/2.552, allocations: 9.543 MB / 0.9489 GB, free: 29.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001505/2.554, allocations: 0.8947 MB / 0.9497 GB, free: 29.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007895/2.562, allocations: 1.189 MB / 0.9509 GB, free: 29.26 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05865/2.62, allocations: 18.55 MB / 0.969 GB, free: 27.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005921/2.621, allocations: 23.33 kB / 0.969 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004516/2.626, allocations: 0.5098 MB / 0.9695 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009528/2.626, allocations: 0.8231 MB / 0.9703 GB, free: 27.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04127/2.668, allocations: 15.5 MB / 0.9855 GB, free: 23.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.123/2.791, allocations: 61.03 MB / 1.045 GB, free: 14.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4326/3.224, allocations: 32.98 MB / 1.077 GB, free: 35.12 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007876/3.231, allocations: 3.682 MB / 1.081 GB, free: 35.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02006/3.252, allocations: 8.795 MB / 1.089 GB, free: 34.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.467e-05/3.252, allocations: 73.98 kB / 1.09 GB, free: 34.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=362): time 6.172e-06/3.252, allocations: 0 / 1.09 GB, free: 34.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=404): time 0.03405/3.286, allocations: 14 MB / 1.103 GB, free: 32.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/3.286, allocations: 102.4 kB / 1.103 GB, free: 32.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009969/3.296, allocations: 4.485 MB / 1.108 GB, free: 32.15 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/3.297, allocations: 91.61 kB / 1.108 GB, free: 32.12 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004766/3.302, allocations: 5.622 MB / 1.113 GB, free: 29.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002425/3.304, allocations: 1.406 MB / 1.115 GB, free: 28.32 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006797/3.305, allocations: 138.8 kB / 1.115 GB, free: 28.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004752/3.305, allocations: 0.582 MB / 1.115 GB, free: 28.01 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004558/3.31, allocations: 2.844 MB / 1.118 GB, free: 27.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006227/3.316, allocations: 5.942 MB / 1.124 GB, free: 24.14 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006709/3.323, allocations: 4.237 MB / 1.128 GB, free: 24.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/3.323, allocations: 31.59 kB / 1.128 GB, free: 24.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02036/3.343, allocations: 9.866 MB / 1.138 GB, free: 23.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/3.344, allocations: 51.22 kB / 1.138 GB, free: 23.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002379/3.344, allocations: 105.6 kB / 1.138 GB, free: 23.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002482/3.346, allocations: 0.9437 MB / 1.139 GB, free: 23.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006557/3.353, allocations: 1.638 MB / 1.14 GB, free: 23.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/3.363, allocations: 9.386 MB / 1.15 GB, free: 19.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007747/3.371, allocations: 425.3 kB / 1.15 GB, free: 19.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/3.373, allocations: 372 kB / 1.15 GB, free: 19.52 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002811/3.376, allocations: 0.5708 MB / 1.151 GB, free: 19.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002195/3.378, allocations: 0.5391 MB / 1.151 GB, free: 19.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/3.39, allocations: 6.468 MB / 1.158 GB, free: 17.61 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.804e-05/3.39, allocations: 40.19 kB / 1.158 GB, free: 17.61 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.925e-05/3.39, allocations: 7.531 kB / 1.158 GB, free: 17.61 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.323e-05/3.39, allocations: 21.23 kB / 1.158 GB, free: 17.61 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03518/3.426, allocations: 15.93 MB / 1.173 GB, free: 11.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/3.426, allocations: 3.031 kB / 1.173 GB, free: 11.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00332/3.429, allocations: 0.7667 MB / 1.174 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/3.431, allocations: 0.7781 MB / 1.175 GB, free: 11.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004285/3.432, allocations: 87.17 kB / 1.175 GB, free: 11.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008572/3.44, allocations: 8.55 MB / 1.183 GB, free: 4.988 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/3.44, allocations: 13.06 kB / 1.183 GB, free: 4.988 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/3.454, allocations: 9.904 MB / 1.193 GB, free: 296 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003895/3.458, allocations: 1.086 MB / 1.194 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009166/3.459, allocations: 84.19 kB / 1.194 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002545/3.461, allocations: 234.5 kB / 1.194 GB, free: 15.51 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006187/3.462, allocations: 277.1 kB / 1.195 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/3.462, allocations: 115.7 kB / 1.195 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006296/3.468, allocations: 3.322 MB / 1.198 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.282e-06/3.468, allocations: 0 / 1.198 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009299/3.478, allocations: 1.995 MB / 1.2 GB, free: 13.98 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01824/3.496, allocations: 11.96 MB / 1.212 GB, free: 5.645 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01848/3.515, allocations: 7.94 MB / 1.219 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/3.515, allocations: 4.375 kB / 1.219 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007266/3.522, allocations: 3.493 MB / 1.223 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008614/3.531, allocations: 1.257 MB / 1.224 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06009/3.591, allocations: 20.44 MB / 1.244 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01505/3.606, allocations: 7.627 MB / 1.251 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009344/3.615, allocations: 2.211 MB / 1.254 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3928/4.008, allocations: 4.853 MB / 1.258 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of SimCode: time 2.334e-06/4.008, allocations: 1.156 kB / 1.258 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2578/4.266, allocations: 157 MB / 1.412 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002662/4.266, allocations: 249.8 kB / 1.412 GB, free: 33.92 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/11.92, allocations: 0 / 1.412 GB, free: 33.92 MB / 0.5261 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource_res.mat does not exist to compare? outputFormat=mat