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.001415/0.001416, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 201.2 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.456/1.456, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 59.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2869, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0505/0.3374, allocations: 41.81 MB / 450.6 MB, free: 7.551 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02739/0.3649, allocations: 11.21 MB / 461.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01068/0.3756, allocations: 311 kB / 462.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02346/0.3992, allocations: 8.773 MB / 470.9 MB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.014/0.4132, allocations: 3.561 MB / 474.5 MB, free: 15.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008291/0.4215, allocations: 2.442 MB / 476.9 MB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02088/0.4424, allocations: 13.42 MB / 490.3 MB, free: 15.71 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04755/0.49, allocations: 25.64 MB / 0.5039 GB, free: 5.922 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01276/0.5028, allocations: 6.958 MB / 0.5107 GB, free: 14.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01746/0.5203, allocations: 8.028 MB / 0.5185 GB, free: 6.891 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006672/0.527, allocations: 1.992 MB / 0.5205 GB, free: 4.898 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008285/0.5353, allocations: 2.406 MB / 0.5228 GB, free: 2.492 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007449/0.5428, allocations: 4.037 MB / 0.5268 GB, free: 14.44 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01886/0.5617, allocations: 7.774 MB / 0.5343 GB, free: 6.637 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5865/1.148, allocations: 26.54 MB / 0.5603 GB, free: 54.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/1.148, allocations: 2.078 kB / 0.5603 GB, free: 54.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.705e-06/1.148, allocations: 0 / 0.5603 GB, free: 54.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001098/1.149, allocations: 0 / 0.5603 GB, free: 54.41 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.05904/1.209, allocations: 15.78 MB / 0.5757 GB, free: 47.37 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/1.209, allocations: 9.469 kB / 0.5757 GB, free: 47.37 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009286/1.218, allocations: 1.75 MB / 0.5774 GB, free: 46.93 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03632/1.254, allocations: 6.295 MB / 0.5835 GB, free: 44.44 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02289/1.277, allocations: 8.316 MB / 0.5917 GB, free: 39.29 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001219/1.278, allocations: 0.9287 MB / 0.5926 GB, free: 38.86 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007279/1.286, allocations: 1.226 MB / 0.5938 GB, free: 38.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0593/1.345, allocations: 19.02 MB / 0.6123 GB, free: 19.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008837/1.346, allocations: 19.91 kB / 0.6124 GB, free: 19.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00578/1.352, allocations: 0.5029 MB / 0.6128 GB, free: 19.28 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006616/1.353, allocations: 0.6651 MB / 0.6135 GB, free: 18.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04138/1.394, allocations: 17.03 MB / 0.6301 GB, free: 1.586 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1428/1.537, allocations: 60.82 MB / 0.6895 GB, free: 4.176 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0333/1.57, allocations: 33.48 MB / 0.7222 GB, free: 14.81 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008095/1.578, allocations: 3.813 MB / 0.7259 GB, free: 10.98 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02414/1.602, allocations: 9.091 MB / 0.7348 GB, free: 1.914 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.81e-05/1.603, allocations: 77.41 kB / 0.7349 GB, free: 1.828 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 6.502e-06/1.603, allocations: 0 / 0.7349 GB, free: 1.828 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.3515/1.954, allocations: 17.92 MB / 0.7524 GB, free: 215.4 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/1.954, allocations: 95.36 kB / 0.7525 GB, free: 215.3 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01285/1.967, allocations: 5.267 MB / 0.7576 GB, free: 215 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009426/1.968, allocations: 87.14 kB / 0.7577 GB, free: 215 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004178/1.972, allocations: 5.82 MB / 0.7634 GB, free: 213 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001819/1.974, allocations: 1.467 MB / 0.7648 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003358/1.977, allocations: 1.355 MB / 0.7662 GB, free: 211.2 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 6.066e-05/1.978, allocations: 309.2 kB / 0.7665 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005407/1.983, allocations: 2.979 MB / 0.7694 GB, free: 209.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007652/1.991, allocations: 6.014 MB / 0.7752 GB, free: 204.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/2.003, allocations: 9.661 MB / 0.7847 GB, free: 197.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/2.003, allocations: 33.66 kB / 0.7847 GB, free: 197.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02085/2.024, allocations: 10.12 MB / 0.7946 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.05e-05/2.024, allocations: 50.22 kB / 0.7946 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/2.025, allocations: 101 kB / 0.7947 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002421/2.027, allocations: 0.9456 MB / 0.7957 GB, free: 193.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006253/2.033, allocations: 1.621 MB / 0.7972 GB, free: 192.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/2.044, allocations: 10.21 MB / 0.8072 GB, free: 183 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006761/2.051, allocations: 428 kB / 0.8076 GB, free: 182.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00173/2.053, allocations: 363.7 kB / 0.808 GB, free: 182.4 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.009592/2.062, allocations: 4.301 MB / 0.8122 GB, free: 178.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0017/2.064, allocations: 0.5702 MB / 0.8127 GB, free: 178.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/2.077, allocations: 6.668 MB / 0.8192 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.819e-05/2.077, allocations: 44 kB / 0.8193 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.422e-05/2.077, allocations: 15.94 kB / 0.8193 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.582e-05/2.077, allocations: 18.94 kB / 0.8193 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0366/2.113, allocations: 16.23 MB / 0.8352 GB, free: 157.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/2.114, allocations: 8.031 kB / 0.8352 GB, free: 157.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003734/2.117, allocations: 0.7645 MB / 0.8359 GB, free: 156.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00234/2.12, allocations: 0.7956 MB / 0.8367 GB, free: 155.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009306/2.121, allocations: 91.97 kB / 0.8368 GB, free: 155.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009243/2.13, allocations: 9.353 MB / 0.8459 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/2.13, allocations: 4 kB / 0.8459 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01615/2.146, allocations: 9.826 MB / 0.8555 GB, free: 135.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003847/2.15, allocations: 1.122 MB / 0.8566 GB, free: 134.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/2.152, allocations: 79.94 kB / 0.8567 GB, free: 134.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004429/2.156, allocations: 231.7 kB / 0.8569 GB, free: 134.4 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001201/2.158, allocations: 270.8 kB / 0.8572 GB, free: 134.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003709/2.158, allocations: 120 kB / 0.8573 GB, free: 134 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007499/2.165, allocations: 3.51 MB / 0.8607 GB, free: 130.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.31e-07/2.166, allocations: 0 / 0.8607 GB, free: 130.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01036/2.176, allocations: 1.941 MB / 0.8626 GB, free: 128.6 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.02015/2.196, allocations: 10.55 MB / 0.8729 GB, free: 117.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01576/2.212, allocations: 7.844 MB / 0.8806 GB, free: 110 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/2.212, allocations: 0 / 0.8806 GB, free: 110 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006591/2.219, allocations: 3.652 MB / 0.8841 GB, free: 106.3 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.011/2.23, allocations: 1.416 MB / 0.8855 GB, free: 104.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1466/2.376, allocations: 67.45 MB / 0.9514 GB, free: 33.46 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01619/2.393, allocations: 7.42 MB / 0.9586 GB, free: 26 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.3014/2.694, allocations: 2.199 MB / 0.9608 GB, free: 219.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009602/2.704, allocations: 4.511 MB / 0.9652 GB, free: 219 MB / 0.5763 GB Notification: Performance of SimCode: time 1.613e-06/2.704, allocations: 3.938 kB / 0.9652 GB, free: 219 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2316/2.935, allocations: 153.6 MB / 1.115 GB, free: 87.02 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.34/27.27, allocations: 16.84 kB / 1.115 GB, free: 87 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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