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.001201/0.001201, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001672/0.001672, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.3 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09598, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1865/0.2825, allocations: 16.5 MB / 374.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.2962, allocations: 5.633 MB / 379.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003721/0.3, allocations: 104 kB / 379.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005222/0.3052, allocations: 1.131 MB / 381 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007439/0.3127, allocations: 1.323 MB / 382.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004328/0.3171, allocations: 0.9926 MB / 383.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007952/0.3251, allocations: 3.971 MB / 387.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009127/0.3342, allocations: 3.622 MB / 390.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004844/0.3391, allocations: 1.891 MB / 392.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005748/0.3449, allocations: 2.336 MB / 395.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002531/0.3474, allocations: 0.5158 MB / 395.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004277/0.3517, allocations: 0.7763 MB / 396.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002801/0.3546, allocations: 1.287 MB / 397.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005028/0.3596, allocations: 2.265 MB / 399.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.3699, allocations: 6.867 MB / 406.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3699, allocations: 0 / 406.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3699, allocations: 0 / 406.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002325/0.3702, allocations: 4 kB / 406.8 MB, free: 10.61 MB / 318.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.01569/0.3859, allocations: 4.687 MB / 411.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.386, allocations: 8.031 kB / 411.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009671/0.3869, allocations: 489.5 kB / 412 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004921/0.3919, allocations: 0.6851 MB / 412.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006294/0.3982, allocations: 2.471 MB / 415.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003398/0.3986, allocations: 270.3 kB / 415.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000886/0.3995, allocations: 343.8 kB / 415.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/0.4104, allocations: 4.473 MB / 420.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.534e-05/0.4106, allocations: 4 kB / 420.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004807/0.4111, allocations: 139.3 kB / 420.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002306/0.4113, allocations: 166.7 kB / 420.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009613/0.4209, allocations: 3.751 MB / 424.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02452/0.4455, allocations: 14.65 MB / 438.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00534/0.4509, allocations: 5.63 MB / 444.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003008/0.4539, allocations: 1.568 MB / 446.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007608/0.4615, allocations: 4.2 MB / 450.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.873e-05/0.4616, allocations: 59.8 kB / 450.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.507e-06/0.4616, allocations: 0 / 450.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01121/0.4729, allocations: 5.657 MB / 456 MB, free: 7.891 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/0.4729, allocations: 68.66 kB / 456.1 MB, free: 7.809 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003645/0.4766, allocations: 2.118 MB / 458.2 MB, free: 5.656 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.4768, allocations: 45.7 kB / 458.3 MB, free: 5.605 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.478, allocations: 1.659 MB / 459.9 MB, free: 3.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004533/0.4785, allocations: 468.9 kB / 460.4 MB, free: 3.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005827/0.4791, allocations: 335.2 kB / 460.7 MB, free: 3.148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.4792, allocations: 301.1 kB / 461 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.4804, allocations: 0.7417 MB / 461.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.482, allocations: 1.364 MB / 463.1 MB, free: 472 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003165/0.4852, allocations: 2.253 MB / 465.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.98e-05/0.4853, allocations: 8 kB / 465.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005052/0.4903, allocations: 2.592 MB / 468 MB, free: 11.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.4904, allocations: 12 kB / 468 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.89e-05/0.4904, allocations: 20.5 kB / 468 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005424/0.491, allocations: 206.3 kB / 468.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.4927, allocations: 451.3 kB / 468.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/0.4961, allocations: 3.787 MB / 472.4 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.498, allocations: 115.9 kB / 472.5 MB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003094/0.4983, allocations: 80 kB / 472.6 MB, free: 6.344 MB / 382.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.002473/0.5008, allocations: 1.055 MB / 473.7 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006983/0.5015, allocations: 225.2 kB / 473.9 MB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004333/0.5059, allocations: 2.271 MB / 476.2 MB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.5059, allocations: 12 kB / 476.2 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-05/0.506, allocations: 4 kB / 476.2 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.506, allocations: 11.97 kB / 476.2 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.5168, allocations: 5.299 MB / 481.5 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.5168, allocations: 0 / 481.5 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5179, allocations: 219.7 kB / 481.7 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008632/0.5188, allocations: 331.4 kB / 482 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.5189, allocations: 32 kB / 482.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00835/0.5273, allocations: 8.237 MB / 490.3 MB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.5273, allocations: 3.984 kB / 490.3 MB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005907/0.5332, allocations: 3.277 MB / 493.6 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.5344, allocations: 458.2 kB / 494 MB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005753/0.535, allocations: 36.12 kB / 494.1 MB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.5364, allocations: 71.92 kB / 494.1 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.5366, allocations: 97.05 kB / 494.2 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.5367, allocations: 39.98 kB / 494.3 MB, free: 15.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002854/0.5396, allocations: 1.443 MB / 495.7 MB, free: 14.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5396, allocations: 0 / 495.7 MB, free: 14.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002537/0.5422, allocations: 0.5742 MB / 496.3 MB, free: 13.79 MB / 414.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.006317/0.5485, allocations: 3.906 MB / 0.4885 GB, free: 9.793 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005111/0.5537, allocations: 2.612 MB / 0.491 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.5537, allocations: 1 kB / 0.491 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.5561, allocations: 1.42 MB / 0.4924 GB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003376/0.5595, allocations: 0.5587 MB / 0.4929 GB, free: 5.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04132/0.6008, allocations: 24.18 MB / 0.5166 GB, free: 10.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002883/0.6038, allocations: 2.425 MB / 0.5189 GB, free: 8.344 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001949/0.6057, allocations: 494.6 kB / 0.5194 GB, free: 7.859 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001915/0.6077, allocations: 1.3 MB / 0.5207 GB, free: 6.559 MB / 446.1 MB Notification: Performance of SimCode: time 2.916e-06/0.6077, allocations: 0 / 0.5207 GB, free: 6.559 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2609/0.8686, allocations: 53.16 MB / 0.5726 GB, free: 118.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.23, allocations: 9.469 kB / 0.5726 GB, free: 118.6 MB / 446.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.0.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