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.001843/0.001843, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002425/0.002425, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 59.91 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2758, allocations: 50.55 MB / 408.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04892/0.3248, allocations: 41.82 MB / 450.7 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02897/0.3538, allocations: 11.21 MB / 461.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01174/0.3656, allocations: 315 kB / 462.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02317/0.3889, allocations: 8.773 MB / 471 MB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01612/0.405, allocations: 3.557 MB / 474.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009091/0.4141, allocations: 2.448 MB / 477 MB, free: 13.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02159/0.4357, allocations: 13.42 MB / 490.4 MB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05027/0.4861, allocations: 25.64 MB / 0.5039 GB, free: 5.832 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01542/0.5016, allocations: 6.962 MB / 0.5107 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01668/0.5183, allocations: 8.031 MB / 0.5186 GB, free: 6.793 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007345/0.5257, allocations: 1.992 MB / 0.5205 GB, free: 4.801 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009503/0.5352, allocations: 2.402 MB / 0.5229 GB, free: 2.398 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00785/0.5431, allocations: 4.033 MB / 0.5268 GB, free: 14.35 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01745/0.5606, allocations: 7.778 MB / 0.5344 GB, free: 6.543 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5877/1.148, allocations: 26.55 MB / 0.5603 GB, free: 54.28 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/1.148, allocations: 0 / 0.5603 GB, free: 54.28 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.639e-06/1.149, allocations: 0 / 0.5603 GB, free: 54.28 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001145/1.15, allocations: 3.281 kB / 0.5603 GB, free: 54.28 MB / 462.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.05995/1.21, allocations: 15.77 MB / 0.5757 GB, free: 47.24 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/1.21, allocations: 9.844 kB / 0.5757 GB, free: 47.24 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009379/1.219, allocations: 1.758 MB / 0.5775 GB, free: 46.8 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03577/1.255, allocations: 6.198 MB / 0.5835 GB, free: 44.34 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0217/1.277, allocations: 8.331 MB / 0.5917 GB, free: 39.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008736/1.278, allocations: 0.9269 MB / 0.5926 GB, free: 38.77 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006647/1.284, allocations: 1.222 MB / 0.5938 GB, free: 38.36 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05792/1.342, allocations: 19.05 MB / 0.6124 GB, free: 19.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008009/1.343, allocations: 27.08 kB / 0.6124 GB, free: 19.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006336/1.349, allocations: 0.5065 MB / 0.6129 GB, free: 19.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006861/1.35, allocations: 0.6606 MB / 0.6135 GB, free: 18.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04124/1.391, allocations: 17.07 MB / 0.6302 GB, free: 1.523 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.142/1.533, allocations: 60.83 MB / 0.6896 GB, free: 4.113 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03421/1.568, allocations: 33.52 MB / 0.7223 GB, free: 14.71 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007961/1.576, allocations: 3.816 MB / 0.7261 GB, free: 10.88 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02488/1.601, allocations: 9.134 MB / 0.735 GB, free: 1.781 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.628e-05/1.601, allocations: 73.39 kB / 0.735 GB, free: 1.699 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 6.272e-06/1.601, allocations: 0 / 0.735 GB, free: 1.699 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.3803/1.981, allocations: 17.96 MB / 0.7526 GB, free: 215.2 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.438e-05/1.981, allocations: 92.8 kB / 0.7527 GB, free: 215.1 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0122/1.993, allocations: 5.262 MB / 0.7578 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.00104/1.995, allocations: 98.45 kB / 0.7579 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.00349/1.998, allocations: 5.817 MB / 0.7636 GB, free: 212.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.00193/2, allocations: 1.475 MB / 0.765 GB, free: 211.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002849/2.003, allocations: 1.364 MB / 0.7664 GB, free: 211 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 7.011e-05/2.003, allocations: 305.7 kB / 0.7666 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005176/2.008, allocations: 2.981 MB / 0.7696 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007369/2.016, allocations: 6.019 MB / 0.7754 GB, free: 204.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/2.027, allocations: 9.682 MB / 0.7849 GB, free: 197.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001335/2.027, allocations: 27.22 kB / 0.7849 GB, free: 197.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01853/2.046, allocations: 10.14 MB / 0.7948 GB, free: 193.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.733e-05/2.046, allocations: 47.59 kB / 0.7949 GB, free: 193.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/2.046, allocations: 106.2 kB / 0.795 GB, free: 193.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/2.048, allocations: 0.9391 MB / 0.7959 GB, free: 193 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006049/2.055, allocations: 1.632 MB / 0.7975 GB, free: 192.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/2.065, allocations: 10.2 MB / 0.8074 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006814/2.072, allocations: 423.5 kB / 0.8078 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0016/2.074, allocations: 363.3 kB / 0.8082 GB, free: 182.2 MB / 0.5763 GB 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.00988/2.084, allocations: 4.309 MB / 0.8124 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002123/2.086, allocations: 0.5691 MB / 0.813 GB, free: 178 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0137/2.099, allocations: 6.668 MB / 0.8195 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/2.1, allocations: 44 kB / 0.8195 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.926e-05/2.1, allocations: 19.94 kB / 0.8195 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-05/2.1, allocations: 23.48 kB / 0.8195 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04142/2.141, allocations: 16.26 MB / 0.8354 GB, free: 156.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.028e-05/2.141, allocations: 7.938 kB / 0.8354 GB, free: 156.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003754/2.145, allocations: 0.7724 MB / 0.8362 GB, free: 156.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002559/2.147, allocations: 0.7927 MB / 0.837 GB, free: 155.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/2.149, allocations: 95.95 kB / 0.8371 GB, free: 155.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01013/2.159, allocations: 9.348 MB / 0.8462 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/2.159, allocations: 8 kB / 0.8462 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01787/2.177, allocations: 9.854 MB / 0.8558 GB, free: 135.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005467/2.182, allocations: 1.126 MB / 0.8569 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00296/2.185, allocations: 75.98 kB / 0.857 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005054/2.19, allocations: 223.8 kB / 0.8572 GB, free: 134 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001284/2.192, allocations: 282.8 kB / 0.8575 GB, free: 133.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000719/2.192, allocations: 124 kB / 0.8576 GB, free: 133.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.008617/2.201, allocations: 3.506 MB / 0.861 GB, free: 130.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.7e-07/2.201, allocations: 5.203 kB / 0.861 GB, free: 130.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01177/2.213, allocations: 1.937 MB / 0.8629 GB, free: 128.2 MB / 0.5763 GB 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.0197/2.232, allocations: 10.59 MB / 0.8732 GB, free: 117.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01417/2.247, allocations: 7.852 MB / 0.8809 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/2.247, allocations: 1.422 kB / 0.8809 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006824/2.254, allocations: 3.664 MB / 0.8845 GB, free: 105.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01168/2.265, allocations: 1.409 MB / 0.8859 GB, free: 104.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.128/2.393, allocations: 67.4 MB / 0.9517 GB, free: 33.12 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01114/2.405, allocations: 7.424 MB / 0.9589 GB, free: 25.66 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.2835/2.688, allocations: 2.2 MB / 0.9611 GB, free: 219.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007858/2.696, allocations: 4.528 MB / 0.9655 GB, free: 218.8 MB / 0.5763 GB Notification: Performance of SimCode: time 9.22e-07/2.696, allocations: 0 / 0.9655 GB, free: 218.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2247/2.921, allocations: 153 MB / 1.115 GB, free: 87.21 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.1/26.02, allocations: 12.77 kB / 1.115 GB, free: 87.2 MB / 0.5763 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.1.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