Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.001297/0.001297, allocations: 110.6 kB / 17.73 MB, free: 5.332 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.001335/0.001335, allocations: 190.9 kB / 18.66 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 47.94 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09301, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2019/0.2949, allocations: 15.84 MB / 390.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.3064, allocations: 5.39 MB / 395.9 MB, free: 280 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004042/0.3105, allocations: 96.41 kB / 396 MB, free: 252 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003892/0.3144, allocations: 1.104 MB / 397.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005751/0.3202, allocations: 1.347 MB / 398.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.323, allocations: 0.9665 MB / 399.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006498/0.3295, allocations: 3.981 MB / 403.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005753/0.3352, allocations: 3.553 MB / 406.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003348/0.3386, allocations: 1.878 MB / 408.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003924/0.3425, allocations: 2.273 MB / 411.1 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001585/0.3441, allocations: 0.515 MB / 411.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002865/0.347, allocations: 0.7317 MB / 412.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002036/0.3491, allocations: 1.292 MB / 413.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003853/0.3529, allocations: 2.249 MB / 415.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008042/0.361, allocations: 6.88 MB / 422.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.361, allocations: 0 / 422.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3611, allocations: 4 kB / 422.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002301/0.3613, allocations: 0 / 422.8 MB, free: 15.79 MB / 350.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.01204/0.3733, allocations: 4.669 MB / 427.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.3734, allocations: 11.97 kB / 427.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000783/0.3742, allocations: 489.5 kB / 427.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/0.3771, allocations: 0.6753 MB / 428.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.3816, allocations: 2.377 MB / 431 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.3818, allocations: 255.5 kB / 431.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005295/0.3824, allocations: 351.8 kB / 431.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007608/0.39, allocations: 4.46 MB / 436 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-05/0.3901, allocations: 3.984 kB / 436 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003218/0.3904, allocations: 147.9 kB / 436.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002163/0.3906, allocations: 162.8 kB / 436.3 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005963/0.3966, allocations: 3.735 MB / 440.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02132/0.4179, allocations: 14.31 MB / 454.4 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005156/0.4231, allocations: 5.357 MB / 459.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/0.425, allocations: 1.26 MB / 461 MB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007159/0.4322, allocations: 3.792 MB / 464.8 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.4322, allocations: 47.81 kB / 464.8 MB, free: 4.277 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.697e-06/0.4322, allocations: 0 / 464.8 MB, free: 4.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.009484/0.4417, allocations: 5.471 MB / 470.3 MB, free: 14.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.4418, allocations: 64.72 kB / 470.4 MB, free: 14.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/0.4447, allocations: 2.106 MB / 472.5 MB, free: 12.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.811e-05/0.4448, allocations: 45.7 kB / 472.5 MB, free: 12.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.4459, allocations: 1.653 MB / 474.2 MB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.4462, allocations: 469.4 kB / 474.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004617/0.4467, allocations: 335.2 kB / 475 MB, free: 9.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.093e-05/0.4468, allocations: 305.1 kB / 475.3 MB, free: 9.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.4479, allocations: 0.7106 MB / 476 MB, free: 8.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.4494, allocations: 1.357 MB / 477.3 MB, free: 7.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002759/0.4522, allocations: 2.223 MB / 479.5 MB, free: 4.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.4522, allocations: 8 kB / 479.6 MB, free: 4.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003789/0.456, allocations: 2.514 MB / 482.1 MB, free: 2.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.456, allocations: 20.02 kB / 482.1 MB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.456, allocations: 20 kB / 482.1 MB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003874/0.4564, allocations: 146.4 kB / 482.2 MB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.4581, allocations: 467.3 kB / 482.7 MB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.4607, allocations: 3.352 MB / 486.1 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.4623, allocations: 111.7 kB / 486.2 MB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/0.4625, allocations: 80 kB / 486.2 MB, free: 13.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001833/0.4644, allocations: 1.055 MB / 487.3 MB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004634/0.4648, allocations: 213.4 kB / 487.5 MB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00361/0.4684, allocations: 2.177 MB / 489.7 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.959e-05/0.4685, allocations: 12 kB / 489.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.4685, allocations: 7.938 kB / 489.7 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.4685, allocations: 3.984 kB / 489.7 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008602/0.4771, allocations: 5.16 MB / 494.9 MB, free: 4.863 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4772, allocations: 4 kB / 494.9 MB, free: 4.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009894/0.4781, allocations: 227.9 kB / 495.1 MB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000703/0.4789, allocations: 275.2 kB / 495.4 MB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.649e-05/0.479, allocations: 31.98 kB / 495.4 MB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006941/0.4859, allocations: 7.802 MB / 0.4914 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4859, allocations: 4 kB / 0.4914 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004834/0.4908, allocations: 3.185 MB / 0.4945 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.492, allocations: 450.4 kB / 0.4949 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005087/0.4925, allocations: 31.98 kB / 0.495 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.4937, allocations: 67.92 kB / 0.495 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.4939, allocations: 96.75 kB / 0.4951 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.673e-05/0.494, allocations: 43.98 kB / 0.4952 GB, free: 7.984 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002586/0.4966, allocations: 1.427 MB / 0.4966 GB, free: 6.539 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.4966, allocations: 0 / 0.4966 GB, free: 6.539 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002216/0.4989, allocations: 0.5665 MB / 0.4971 GB, free: 5.973 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (112): * Single equations (assignments): 108 * 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,5,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.004777/0.5036, allocations: 3.796 MB / 0.5008 GB, free: 2.062 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.5068, allocations: 2.102 MB / 0.5029 GB, free: 15.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.5068, allocations: 0 / 0.5029 GB, free: 15.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001939/0.5087, allocations: 1.38 MB / 0.5042 GB, free: 14.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.5112, allocations: 0.5475 MB / 0.5048 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03154/0.5428, allocations: 21.23 MB / 0.5255 GB, free: 7.855 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002219/0.5451, allocations: 2.421 MB / 0.5279 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001498/0.5466, allocations: 498.5 kB / 0.5283 GB, free: 4.914 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/0.5481, allocations: 1.304 MB / 0.5296 GB, free: 3.609 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5482, allocations: 3.938 kB / 0.5296 GB, free: 3.605 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2658/0.8139, allocations: 51.81 MB / 0.5802 GB, free: 142.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.51, allocations: 13.02 kB / 0.5802 GB, free: 142.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches