Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001734/0.001734, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002014/0.002014, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2721, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.02096/0.2931, allocations: 16.51 MB / 425.3 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.3063, allocations: 5.626 MB / 430.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003472/0.3098, allocations: 107.6 kB / 431 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0042/0.314, allocations: 1.136 MB / 432.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005274/0.3194, allocations: 1.32 MB / 433.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003263/0.3227, allocations: 0.9926 MB / 434.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006596/0.3293, allocations: 4.008 MB / 438.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006755/0.3361, allocations: 3.611 MB / 442.1 MB, free: 28 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003741/0.3398, allocations: 1.893 MB / 444 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004474/0.3443, allocations: 2.343 MB / 446.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001557/0.3459, allocations: 0.5195 MB / 446.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00253/0.3485, allocations: 0.7691 MB / 447.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002092/0.3506, allocations: 1.282 MB / 448.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004352/0.355, allocations: 2.259 MB / 451.2 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.3654, allocations: 6.956 MB / 458.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3654, allocations: 0 / 458.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3654, allocations: 4 kB / 458.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002006/0.3656, allocations: 0 / 458.1 MB, free: 15.95 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01431/0.3799, allocations: 4.797 MB / 462.9 MB, free: 11.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.38, allocations: 12.03 kB / 462.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/0.3817, allocations: 493.5 kB / 463.4 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004078/0.3858, allocations: 0.701 MB / 464.1 MB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006673/0.3925, allocations: 2.554 MB / 466.7 MB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000357/0.3929, allocations: 259.3 kB / 466.9 MB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/0.3941, allocations: 351.9 kB / 467.3 MB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.4058, allocations: 4.468 MB / 471.7 MB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.406, allocations: 7.953 kB / 471.7 MB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007908/0.4068, allocations: 144 kB / 471.9 MB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002074/0.407, allocations: 162.8 kB / 472 MB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009137/0.4161, allocations: 3.751 MB / 475.8 MB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03147/0.4476, allocations: 14.52 MB / 490.3 MB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006965/0.4546, allocations: 5.615 MB / 495.9 MB, free: 8.738 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003577/0.4582, allocations: 1.68 MB / 497.6 MB, free: 7.059 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009158/0.4674, allocations: 4.227 MB / 0.4901 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.679e-05/0.4675, allocations: 51.81 kB / 0.4901 GB, free: 2.633 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.056e-06/0.4675, allocations: 4 kB / 0.4901 GB, free: 2.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01294/0.4805, allocations: 5.719 MB / 0.4957 GB, free: 12.74 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.4806, allocations: 68.66 kB / 0.4958 GB, free: 12.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005221/0.4858, allocations: 2.115 MB / 0.4978 GB, free: 10.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002916/0.4862, allocations: 45.7 kB / 0.4979 GB, free: 10.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00164/0.4878, allocations: 1.709 MB / 0.4995 GB, free: 8.742 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000678/0.4885, allocations: 483.9 kB / 0.5 GB, free: 8.266 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008682/0.4894, allocations: 339.4 kB / 0.5003 GB, free: 7.926 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.4896, allocations: 309.1 kB / 0.5006 GB, free: 7.621 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.491, allocations: 0.7301 MB / 0.5013 GB, free: 6.891 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001988/0.493, allocations: 1.364 MB / 0.5027 GB, free: 5.238 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003601/0.4966, allocations: 2.25 MB / 0.5049 GB, free: 2.707 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/0.4967, allocations: 8 kB / 0.5049 GB, free: 2.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005188/0.5019, allocations: 2.609 MB / 0.5074 GB, free: 56 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.5019, allocations: 12 kB / 0.5074 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/0.502, allocations: 20 kB / 0.5075 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005779/0.5026, allocations: 194.9 kB / 0.5076 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/0.5044, allocations: 455.3 kB / 0.5081 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004096/0.5085, allocations: 3.785 MB / 0.5118 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.5105, allocations: 119.9 kB / 0.5119 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/0.5108, allocations: 83.97 kB / 0.512 GB, free: 11.11 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002589/0.5134, allocations: 1.044 MB / 0.513 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007105/0.5141, allocations: 234.5 kB / 0.5132 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005565/0.5197, allocations: 2.268 MB / 0.5154 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/0.5197, allocations: 12 kB / 0.5154 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-05/0.5198, allocations: 8 kB / 0.5154 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.498e-05/0.5198, allocations: 7.969 kB / 0.5154 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.5352, allocations: 5.3 MB / 0.5206 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.5353, allocations: 4 kB / 0.5206 GB, free: 2.031 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/0.5368, allocations: 227.9 kB / 0.5208 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.538, allocations: 319.3 kB / 0.5212 GB, free: 1.484 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001547/0.5382, allocations: 31.94 kB / 0.5212 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.5501, allocations: 8.247 MB / 0.5292 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.5502, allocations: 4.031 kB / 0.5292 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007813/0.558, allocations: 3.291 MB / 0.5325 GB, free: 5.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/0.5598, allocations: 475.5 kB / 0.5329 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005325/0.5603, allocations: 28 kB / 0.5329 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.5617, allocations: 67.92 kB / 0.533 GB, free: 4.672 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.5619, allocations: 97.06 kB / 0.5331 GB, free: 4.578 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-05/0.562, allocations: 35.98 kB / 0.5331 GB, free: 4.543 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00257/0.5646, allocations: 1.447 MB / 0.5345 GB, free: 3.078 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5646, allocations: 0 / 0.5345 GB, free: 3.078 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002583/0.5672, allocations: 0.5663 MB / 0.5351 GB, free: 2.512 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.229/0.7963, allocations: 3.908 MB / 0.5389 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.8001, allocations: 2.169 MB / 0.541 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.8001, allocations: 0 / 0.541 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.8022, allocations: 1.421 MB / 0.5424 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0033/0.8055, allocations: 0.5598 MB / 0.543 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03417/0.8397, allocations: 21.58 MB / 0.564 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002476/0.8422, allocations: 2.424 MB / 0.5664 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001753/0.844, allocations: 494.6 kB / 0.5669 GB, free: 103.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/0.8458, allocations: 1.3 MB / 0.5681 GB, free: 102.5 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8458, allocations: 0 / 0.5681 GB, free: 102.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09038/0.9362, allocations: 52.42 MB / 0.6193 GB, free: 50.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/15.56, allocations: 14.94 kB / 0.6193 GB, free: 50.55 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_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_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches