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.001153/0.001153, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001303/0.001303, allocations: 184.2 kB / 18.66 MB, free: 4.418 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.291/1.291, 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.001185/0.001185, allocations: 47.92 kB / 328 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09476/0.09596, allocations: 46.62 MB / 374.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.1955/0.2915, allocations: 15.84 MB / 390.5 MB, free: 4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009349/0.3009, allocations: 5.384 MB / 395.9 MB, free: 284 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003227/0.3042, allocations: 91.66 kB / 396 MB, free: 260 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003365/0.3076, allocations: 1.116 MB / 397.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005078/0.3127, allocations: 1.347 MB / 398.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.3153, allocations: 0.9636 MB / 399.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005569/0.3209, allocations: 3.986 MB / 403.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005196/0.3261, allocations: 3.554 MB / 406.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003176/0.3293, allocations: 1.889 MB / 408.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003857/0.3332, allocations: 2.271 MB / 411.1 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001449/0.3346, allocations: 0.5157 MB / 411.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002627/0.3373, allocations: 0.7395 MB / 412.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002173/0.3395, allocations: 1.29 MB / 413.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004456/0.3439, allocations: 2.247 MB / 415.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009181/0.3531, allocations: 6.88 MB / 422.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3532, allocations: 0 / 422.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3532, allocations: 3.938 kB / 422.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002184/0.3534, allocations: 4 kB / 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.01281/0.3662, allocations: 4.662 MB / 427.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3663, allocations: 12.03 kB / 427.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/0.3675, allocations: 493.5 kB / 427.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003464/0.371, allocations: 0.6636 MB / 428.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004908/0.376, allocations: 2.381 MB / 431 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.3762, allocations: 263.5 kB / 431.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008729/0.3771, allocations: 351.8 kB / 431.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008846/0.386, allocations: 4.46 MB / 436 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.581e-05/0.3861, allocations: 3.938 kB / 436 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/0.3864, allocations: 144 kB / 436.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001401/0.3865, allocations: 158.8 kB / 436.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006413/0.393, allocations: 3.731 MB / 440.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0224/0.4154, allocations: 14.31 MB / 454.4 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005384/0.4208, allocations: 5.368 MB / 459.8 MB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/0.4227, allocations: 1.256 MB / 461 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006402/0.4292, allocations: 3.78 MB / 464.8 MB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.467e-05/0.4293, allocations: 55.81 kB / 464.8 MB, free: 4.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.475e-06/0.4293, allocations: 0 / 464.8 MB, free: 4.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.009291/0.4386, allocations: 5.475 MB / 470.3 MB, free: 14.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.4386, allocations: 72.7 kB / 470.4 MB, free: 14.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/0.4416, allocations: 2.098 MB / 472.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.749e-05/0.4417, allocations: 45.7 kB / 472.5 MB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.4428, allocations: 1.657 MB / 474.2 MB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.4432, allocations: 465.4 kB / 474.6 MB, free: 10.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004762/0.4437, allocations: 335.2 kB / 475 MB, free: 9.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.173e-05/0.4438, allocations: 301.1 kB / 475.3 MB, free: 9.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.4448, allocations: 0.7144 MB / 476 MB, free: 8.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/0.4463, allocations: 1.353 MB / 477.3 MB, free: 7.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/0.4491, allocations: 2.227 MB / 479.6 MB, free: 4.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.4491, allocations: 8 kB / 479.6 MB, free: 4.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003925/0.453, allocations: 2.517 MB / 482.1 MB, free: 2.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.4531, allocations: 12 kB / 482.1 MB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.402e-05/0.4531, allocations: 20.5 kB / 482.1 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003793/0.4535, allocations: 150.4 kB / 482.3 MB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.4551, allocations: 463.3 kB / 482.7 MB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003107/0.4582, allocations: 3.345 MB / 486.1 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/0.4602, allocations: 119.7 kB / 486.2 MB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.4603, allocations: 79.98 kB / 486.3 MB, free: 13.71 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.001866/0.4622, allocations: 1.052 MB / 487.3 MB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000416/0.4626, allocations: 209.4 kB / 487.5 MB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/0.466, allocations: 2.185 MB / 489.7 MB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.466, allocations: 12 kB / 489.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.466, allocations: 7.938 kB / 489.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.466, allocations: 7.969 kB / 489.7 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00763/0.4737, allocations: 5.16 MB / 494.9 MB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.4737, allocations: 4 kB / 494.9 MB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009833/0.4747, allocations: 227.7 kB / 495.1 MB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007064/0.4754, allocations: 267.5 kB / 495.4 MB, free: 4.371 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-05/0.4755, allocations: 31.98 kB / 495.4 MB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006457/0.482, allocations: 7.802 MB / 0.4914 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.482, allocations: 7.984 kB / 0.4914 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004744/0.4868, allocations: 3.181 MB / 0.4945 GB, free: 8.699 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/0.4878, allocations: 458.3 kB / 0.495 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005337/0.4883, allocations: 24 kB / 0.495 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.4896, allocations: 75.92 kB / 0.4951 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.4898, allocations: 101.1 kB / 0.4952 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-05/0.4899, allocations: 39.98 kB / 0.4952 GB, free: 7.992 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002729/0.4927, allocations: 1.423 MB / 0.4966 GB, free: 6.551 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4927, allocations: 4 kB / 0.4966 GB, free: 6.547 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002305/0.495, allocations: 0.5704 MB / 0.4971 GB, free: 5.977 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.005161/0.5002, allocations: 3.784 MB / 0.5008 GB, free: 2.078 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003238/0.5034, allocations: 2.11 MB / 0.5029 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.5034, allocations: 4.25 kB / 0.5029 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.5054, allocations: 1.375 MB / 0.5042 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003179/0.5086, allocations: 0.5399 MB / 0.5048 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03683/0.5454, allocations: 21.24 MB / 0.5255 GB, free: 7.867 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003585/0.5491, allocations: 2.421 MB / 0.5279 GB, free: 5.414 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001767/0.5508, allocations: 494.5 kB / 0.5283 GB, free: 4.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001952/0.5528, allocations: 1.3 MB / 0.5296 GB, free: 3.629 MB / 462.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5528, allocations: 0 / 0.5296 GB, free: 3.629 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2957/0.8485, allocations: 52.18 MB / 0.5806 GB, free: 142.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/14.07, allocations: 4.922 kB / 0.5806 GB, free: 142.1 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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