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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001192, allocations: 89.17 kB / 16.65 MB, free: 6.59 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.001248/0.001248, allocations: 181.6 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.3 MB / 241.6 MB, free: 14.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002749, allocations: 8.75 kB / 301.6 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09776, allocations: 50.4 MB / 352 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2192/0.3171, allocations: 38.85 MB / 390.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02873/0.3458, allocations: 10.74 MB / 401.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01159/0.3575, allocations: 288.6 kB / 401.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009338/0.3669, allocations: 2.254 MB / 404.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01677/0.3837, allocations: 3.203 MB / 407.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00895/0.3927, allocations: 2.025 MB / 409.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02262/0.4153, allocations: 13.36 MB / 422.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05068/0.466, allocations: 24.32 MB / 447 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01114/0.4772, allocations: 4.903 MB / 451.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.4889, allocations: 6.064 MB / 458 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003973/0.4929, allocations: 0.7773 MB / 458.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007211/0.5001, allocations: 1.167 MB / 459.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006343/0.5065, allocations: 2.565 MB / 462.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01663/0.5232, allocations: 6.151 MB / 468.6 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03384/0.5571, allocations: 24.8 MB / 493.4 MB, free: 7.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.5571, allocations: 0 / 493.4 MB, free: 7.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5571, allocations: 3.938 kB / 493.4 MB, free: 7.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009196/0.5581, allocations: 4 kB / 493.4 MB, free: 7.742 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04095/0.599, allocations: 12.76 MB / 0.4943 GB, free: 10.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.5991, allocations: 12.03 kB / 0.4943 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007009/0.6061, allocations: 1.756 MB / 0.4961 GB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03495/0.6411, allocations: 6.229 MB / 0.5021 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01986/0.661, allocations: 8.025 MB / 0.51 GB, free: 10.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001451/0.6625, allocations: 0.939 MB / 0.5109 GB, free: 9.785 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005612/0.6681, allocations: 1.23 MB / 0.5121 GB, free: 8.555 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4659/1.134, allocations: 19.02 MB / 0.5307 GB, free: 108.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004661/1.135, allocations: 23.2 kB / 0.5307 GB, free: 108.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003515/1.138, allocations: 0.509 MB / 0.5312 GB, free: 108 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008391/1.139, allocations: 0.6521 MB / 0.5318 GB, free: 108 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03818/1.177, allocations: 17.03 MB / 0.5485 GB, free: 101.5 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09964/1.277, allocations: 60.72 MB / 0.6077 GB, free: 46.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0208/1.298, allocations: 33.13 MB / 0.6401 GB, free: 9.676 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006363/1.304, allocations: 3.809 MB / 0.6438 GB, free: 5.855 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01909/1.323, allocations: 8.935 MB / 0.6525 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.01e-05/1.323, allocations: 73.41 kB / 0.6526 GB, free: 12.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.49e-06/1.323, allocations: 0 / 0.6526 GB, free: 12.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.04086/1.364, allocations: 17.78 MB / 0.67 GB, free: 10.95 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/1.364, allocations: 98.52 kB / 0.6701 GB, free: 10.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01248/1.377, allocations: 5.24 MB / 0.6752 GB, free: 5.617 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009095/1.378, allocations: 89.7 kB / 0.6753 GB, free: 5.523 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004691/1.382, allocations: 5.617 MB / 0.6808 GB, free: 15.87 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002047/1.385, allocations: 1.404 MB / 0.6821 GB, free: 14.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/1.386, allocations: 0.5364 MB / 0.6827 GB, free: 13.93 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/1.386, allocations: 301.1 kB / 0.6829 GB, free: 13.64 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004976/1.391, allocations: 2.973 MB / 0.6859 GB, free: 10.66 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006708/1.398, allocations: 6.012 MB / 0.6917 GB, free: 3.211 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2751/1.673, allocations: 9.668 MB / 0.7012 GB, free: 138.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001045/1.673, allocations: 32.25 kB / 0.7012 GB, free: 138.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01962/1.692, allocations: 10.08 MB / 0.711 GB, free: 134.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.693, allocations: 51.69 kB / 0.7111 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002398/1.693, allocations: 103.2 kB / 0.7112 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/1.695, allocations: 0.9411 MB / 0.7121 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006104/1.702, allocations: 1.625 MB / 0.7137 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/1.712, allocations: 9.515 MB / 0.723 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006554/1.719, allocations: 413.5 kB / 0.7234 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009241/1.72, allocations: 362.2 kB / 0.7237 GB, free: 127.9 MB / 478.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.007636/1.727, allocations: 4.296 MB / 0.7279 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/1.729, allocations: 0.5424 MB / 0.7285 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/1.739, allocations: 6.676 MB / 0.735 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.608e-05/1.739, allocations: 38.44 kB / 0.735 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/1.739, allocations: 12.62 kB / 0.735 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.74e-05/1.739, allocations: 21.33 kB / 0.735 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0276/1.767, allocations: 16.26 MB / 0.7509 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/1.767, allocations: 3.75 kB / 0.7509 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003055/1.77, allocations: 0.7686 MB / 0.7517 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/1.772, allocations: 0.7968 MB / 0.7525 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002591/1.772, allocations: 87.75 kB / 0.7525 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008352/1.78, allocations: 8.684 MB / 0.761 GB, free: 107.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/1.781, allocations: 4 kB / 0.761 GB, free: 107.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01337/1.794, allocations: 9.795 MB / 0.7706 GB, free: 98.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/1.797, allocations: 1.109 MB / 0.7717 GB, free: 97.35 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009042/1.798, allocations: 68 kB / 0.7717 GB, free: 97.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/1.8, allocations: 239.7 kB / 0.772 GB, free: 97.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005441/1.801, allocations: 274.8 kB / 0.7722 GB, free: 96.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/1.801, allocations: 123.9 kB / 0.7723 GB, free: 96.66 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005046/1.806, allocations: 3.493 MB / 0.7758 GB, free: 93.19 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.806, allocations: 0 / 0.7758 GB, free: 93.19 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007022/1.813, allocations: 1.937 MB / 0.7776 GB, free: 91.26 MB / 478.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,62.5%), (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.01255/1.826, allocations: 10.53 MB / 0.7879 GB, free: 80.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01111/1.837, allocations: 7.825 MB / 0.7956 GB, free: 72.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/1.837, allocations: 4 kB / 0.7956 GB, free: 72.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004672/1.842, allocations: 3.626 MB / 0.7991 GB, free: 69 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009952/1.852, allocations: 1.307 MB / 0.8004 GB, free: 67.72 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4139/2.265, allocations: 89.74 MB / 0.888 GB, free: 152.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009512/2.275, allocations: 7.424 MB / 0.8953 GB, free: 149.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006464/2.281, allocations: 2.192 MB / 0.8974 GB, free: 149.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005674/2.287, allocations: 4.501 MB / 0.9018 GB, free: 145.7 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/2.287, allocations: 0 / 0.9018 GB, free: 145.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.518/2.805, allocations: 151.1 MB / 1.049 GB, free: 110.9 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/2.806, allocations: 294.2 kB / 1.05 GB, free: 110.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.206/9.011, allocations: 0 / 1.05 GB, free: 110.5 MB / 494.1 MB (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/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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches