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.001471/0.001471, allocations: 113.4 kB / 17.73 MB, free: 5.32 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.001652/0.001652, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.316/1.316, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001258/0.001259, allocations: 51.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.09422, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2311/0.3254, allocations: 15.84 MB / 390.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.3376, allocations: 5.388 MB / 395.9 MB, free: 304 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004977/0.3427, allocations: 92.25 kB / 396 MB, free: 280 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00437/0.3471, allocations: 1.112 MB / 397.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006734/0.3539, allocations: 1.346 MB / 398.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003069/0.3569, allocations: 0.972 MB / 399.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007379/0.3643, allocations: 3.972 MB / 403.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007115/0.3715, allocations: 3.559 MB / 406.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004441/0.3759, allocations: 1.894 MB / 408.8 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005481/0.3814, allocations: 2.264 MB / 411.1 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002061/0.3835, allocations: 0.517 MB / 411.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003933/0.3874, allocations: 0.7368 MB / 412.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002853/0.3903, allocations: 1.285 MB / 413.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004657/0.395, allocations: 2.254 MB / 415.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008657/0.4037, allocations: 6.882 MB / 422.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.4037, allocations: 4 kB / 422.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4037, allocations: 0 / 422.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002372/0.4039, allocations: 0 / 422.8 MB, free: 15.8 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.01468/0.4186, allocations: 4.666 MB / 427.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.4187, allocations: 12.03 kB / 427.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001676/0.4204, allocations: 0.4897 MB / 427.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003882/0.4243, allocations: 0.6636 MB / 428.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006215/0.4305, allocations: 2.377 MB / 431 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.4309, allocations: 263.5 kB / 431.2 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/0.4321, allocations: 347.8 kB / 431.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.4436, allocations: 4.456 MB / 436 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.4438, allocations: 7.984 kB / 436 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003726/0.4441, allocations: 140 kB / 436.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001938/0.4443, allocations: 162.8 kB / 436.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006787/0.4511, allocations: 3.739 MB / 440.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02389/0.475, allocations: 14.31 MB / 454.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005874/0.481, allocations: 5.362 MB / 459.7 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002185/0.4832, allocations: 1.259 MB / 461 MB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007213/0.4904, allocations: 3.788 MB / 464.8 MB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.4905, allocations: 55.81 kB / 464.9 MB, free: 4.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.645e-06/0.4905, allocations: 0 / 464.9 MB, free: 4.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.009772/0.5003, allocations: 5.463 MB / 470.3 MB, free: 14.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.5004, allocations: 64.72 kB / 470.4 MB, free: 14.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003488/0.5039, allocations: 2.102 MB / 472.5 MB, free: 12.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.317e-05/0.504, allocations: 49.7 kB / 472.5 MB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.5052, allocations: 1.657 MB / 474.2 MB, free: 10.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004152/0.5056, allocations: 465.4 kB / 474.6 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005215/0.5061, allocations: 339.2 kB / 475 MB, free: 9.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.5062, allocations: 301.1 kB / 475.3 MB, free: 9.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.5074, allocations: 0.7145 MB / 476 MB, free: 8.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.5089, allocations: 1.357 MB / 477.3 MB, free: 7.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.5117, allocations: 2.223 MB / 479.6 MB, free: 4.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/0.5117, allocations: 4 kB / 479.6 MB, free: 4.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003981/0.5157, allocations: 2.517 MB / 482.1 MB, free: 2.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.5157, allocations: 19.98 kB / 482.1 MB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.5158, allocations: 20 kB / 482.1 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.5162, allocations: 143 kB / 482.3 MB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.5178, allocations: 471.1 kB / 482.7 MB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002459/0.5203, allocations: 3.348 MB / 486.1 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.5219, allocations: 115.7 kB / 486.2 MB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.522, allocations: 80 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.001716/0.5237, allocations: 1.051 MB / 487.3 MB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.5242, allocations: 213.4 kB / 487.5 MB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.5277, allocations: 2.181 MB / 489.7 MB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.5278, allocations: 12 kB / 489.7 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/0.5278, allocations: 8.062 kB / 489.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.5278, allocations: 7.984 kB / 489.7 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009098/0.5369, allocations: 5.164 MB / 494.9 MB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.5369, allocations: 0 / 494.9 MB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.538, allocations: 223.7 kB / 495.1 MB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007319/0.5387, allocations: 275.5 kB / 495.4 MB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.5388, allocations: 35.98 kB / 495.4 MB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006923/0.5458, allocations: 7.798 MB / 0.4914 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5458, allocations: 0 / 0.4914 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005443/0.5513, allocations: 3.185 MB / 0.4945 GB, free: 8.699 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/0.5528, allocations: 454.4 kB / 0.495 GB, free: 8.234 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006849/0.5535, allocations: 27.98 kB / 0.495 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.5549, allocations: 71.92 kB / 0.4951 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.5552, allocations: 92.81 kB / 0.4951 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.5553, allocations: 43.92 kB / 0.4952 GB, free: 8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003265/0.5586, allocations: 1.427 MB / 0.4966 GB, free: 6.555 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5586, allocations: 0 / 0.4966 GB, free: 6.555 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003159/0.5618, allocations: 0.5587 MB / 0.4971 GB, free: 5.996 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.006012/0.5678, allocations: 3.804 MB / 0.5008 GB, free: 2.078 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003714/0.5715, allocations: 2.102 MB / 0.5029 GB, free: 15.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.5715, allocations: 0 / 0.5029 GB, free: 15.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002174/0.5737, allocations: 1.379 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.003723/0.5775, allocations: 0.5556 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.04012/0.6176, allocations: 21.22 MB / 0.5255 GB, free: 7.871 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002861/0.6205, allocations: 2.425 MB / 0.5279 GB, free: 5.414 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001565/0.6221, allocations: 0.4907 MB / 0.5284 GB, free: 4.922 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/0.6238, allocations: 1.304 MB / 0.5296 GB, free: 3.617 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6238, allocations: 0 / 0.5296 GB, free: 3.617 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.322/0.9458, allocations: 52.17 MB / 0.5806 GB, free: 141.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.5, allocations: 8.875 kB / 0.5806 GB, free: 141.9 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