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.001278/0.001278, allocations: 101 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 63.08 kB / 306.4 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07661/0.07771, allocations: 50.53 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1731/0.2508, allocations: 41.04 MB / 398 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02225/0.2731, allocations: 11.1 MB / 409.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007897/0.2811, allocations: 300.4 kB / 409.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01731/0.2984, allocations: 8.225 MB / 417.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01362/0.3121, allocations: 3.226 MB / 420.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00734/0.3194, allocations: 2.277 MB / 423.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01764/0.3371, allocations: 13.5 MB / 436.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03619/0.3733, allocations: 20.8 MB / 457.4 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01076/0.3841, allocations: 6.028 MB / 463.4 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01475/0.3988, allocations: 7.574 MB / 471 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005725/0.4046, allocations: 1.328 MB / 472.3 MB, free: 8.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008952/0.4136, allocations: 1.738 MB / 474 MB, free: 7.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005836/0.4194, allocations: 3.357 MB / 477.4 MB, free: 3.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01509/0.4345, allocations: 7.074 MB / 484.5 MB, free: 12.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03177/0.4663, allocations: 25.84 MB / 0.4984 GB, free: 2.863 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4664, allocations: 0 / 0.4984 GB, free: 2.863 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4664, allocations: 0 / 0.4984 GB, free: 2.863 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008923/0.4673, allocations: 0 / 0.4984 GB, free: 2.863 MB / 414.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.0538/0.5211, allocations: 15.51 MB / 0.5135 GB, free: 3.234 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.5212, allocations: 8.031 kB / 0.5135 GB, free: 3.227 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006868/0.528, allocations: 1.756 MB / 0.5152 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03349/0.5615, allocations: 6.201 MB / 0.5213 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01795/0.5795, allocations: 8.022 MB / 0.5291 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001048/0.5806, allocations: 0.939 MB / 0.53 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00413/0.5847, allocations: 1.222 MB / 0.5312 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4062/0.9909, allocations: 19.02 MB / 0.5498 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004978/0.9914, allocations: 23.12 kB / 0.5498 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002757/0.9942, allocations: 0.5033 MB / 0.5503 GB, free: 119.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008561/0.9951, allocations: 0.6557 MB / 0.551 GB, free: 119.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03233/1.027, allocations: 17.03 MB / 0.5676 GB, free: 111.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08684/1.114, allocations: 61.35 MB / 0.6275 GB, free: 49.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01839/1.133, allocations: 33.5 MB / 0.6602 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00531/1.138, allocations: 3.84 MB / 0.664 GB, free: 8.332 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01538/1.153, allocations: 9.099 MB / 0.6728 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.708e-05/1.154, allocations: 73.34 kB / 0.6729 GB, free: 15.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 7.024e-06/1.154, allocations: 4 kB / 0.6729 GB, free: 15.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.03693/1.191, allocations: 17.76 MB / 0.6903 GB, free: 13.23 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/1.191, allocations: 94.58 kB / 0.6904 GB, free: 13.13 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009487/1.2, allocations: 5.253 MB / 0.6955 GB, free: 7.895 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006362/1.201, allocations: 97.7 kB / 0.6956 GB, free: 7.793 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003948/1.205, allocations: 5.624 MB / 0.7011 GB, free: 2.137 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/1.206, allocations: 1.401 MB / 0.7024 GB, free: 0.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00323/1.21, allocations: 1.355 MB / 0.7038 GB, free: 15.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/1.21, allocations: 301.1 kB / 0.7041 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005223/1.215, allocations: 2.969 MB / 0.7069 GB, free: 12.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006852/1.222, allocations: 6.015 MB / 0.7128 GB, free: 4.668 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2368/1.459, allocations: 9.657 MB / 0.7223 GB, free: 150.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/1.459, allocations: 33.09 kB / 0.7223 GB, free: 150.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01979/1.479, allocations: 10.08 MB / 0.7321 GB, free: 146.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.479e-05/1.479, allocations: 50 kB / 0.7322 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002162/1.479, allocations: 103.2 kB / 0.7323 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002942/1.482, allocations: 0.9361 MB / 0.7332 GB, free: 146.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006092/1.488, allocations: 1.63 MB / 0.7348 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.498, allocations: 9.502 MB / 0.7441 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005165/1.503, allocations: 422 kB / 0.7445 GB, free: 139.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008569/1.504, allocations: 364.9 kB / 0.7448 GB, free: 139.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006747/1.511, allocations: 4.301 MB / 0.749 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/1.512, allocations: 0.5429 MB / 0.7495 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/1.523, allocations: 6.678 MB / 0.7561 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.74e-05/1.523, allocations: 40.88 kB / 0.7561 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/1.523, allocations: 11.72 kB / 0.7561 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.12e-05/1.523, allocations: 23.02 kB / 0.7561 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02526/1.549, allocations: 16.26 MB / 0.772 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/1.549, allocations: 3.625 kB / 0.772 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002916/1.552, allocations: 0.7728 MB / 0.7728 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00205/1.554, allocations: 0.7898 MB / 0.7735 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/1.554, allocations: 91.64 kB / 0.7736 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008192/1.562, allocations: 8.658 MB / 0.7821 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/1.562, allocations: 16.09 kB / 0.7821 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/1.575, allocations: 9.786 MB / 0.7917 GB, free: 110.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002539/1.577, allocations: 1.097 MB / 0.7927 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001252/1.579, allocations: 76 kB / 0.7928 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002644/1.581, allocations: 227.7 kB / 0.793 GB, free: 109.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005697/1.582, allocations: 274.8 kB / 0.7933 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002703/1.582, allocations: 123.9 kB / 0.7934 GB, free: 108.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006199/1.588, allocations: 3.502 MB / 0.7968 GB, free: 105.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.588, allocations: 1.203 kB / 0.7968 GB, free: 105.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007106/1.596, allocations: 1.948 MB / 0.7987 GB, free: 103.4 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01402/1.61, allocations: 10.52 MB / 0.809 GB, free: 92.78 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01229/1.622, allocations: 7.825 MB / 0.8166 GB, free: 84.89 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.622, allocations: 0 / 0.8166 GB, free: 84.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004692/1.627, allocations: 3.641 MB / 0.8202 GB, free: 81.17 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008242/1.635, allocations: 1.32 MB / 0.8215 GB, free: 79.89 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3736/2.009, allocations: 89.59 MB / 0.909 GB, free: 166.3 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/2.021, allocations: 7.427 MB / 0.9162 GB, free: 165.2 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007021/2.028, allocations: 2.22 MB / 0.9184 GB, free: 165.1 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006836/2.035, allocations: 4.515 MB / 0.9228 GB, free: 161.2 MB / 0.4982 GB Notification: Performance of SimCode: time 1.312e-06/2.035, allocations: 0 / 0.9228 GB, free: 161.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2412/2.276, allocations: 153.1 MB / 1.072 GB, free: 24.44 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/2.276, allocations: 297.4 kB / 1.073 GB, free: 24.06 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.734/7.01, allocations: 0 / 1.073 GB, free: 24.06 MB / 0.4982 GB (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/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) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches