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.001092/0.001092, allocations: 108 kB / 17.15 MB, free: 6.305 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.001161/0.001161, allocations: 198 kB / 18.07 MB, free: 5.41 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.482/1.482, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001127/0.001127, allocations: 47.94 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09153, allocations: 46.63 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01494/0.1065, allocations: 15.64 MB / 342.3 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009715/0.1163, allocations: 5.327 MB / 347.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002934/0.1193, allocations: 91.62 kB / 347.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.1225, allocations: 0.9598 MB / 348.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004337/0.1268, allocations: 1.216 MB / 349.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00236/0.1292, allocations: 0.881 MB / 350.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00583/0.135, allocations: 4.091 MB / 354.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00528/0.1403, allocations: 2.993 MB / 357.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002763/0.1431, allocations: 1.568 MB / 359.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003493/0.1466, allocations: 2.121 MB / 361.6 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001287/0.1479, allocations: 316 kB / 361.9 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00241/0.1503, allocations: 0.5349 MB / 362.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.1515, allocations: 1.067 MB / 363.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002482/0.154, allocations: 2.021 MB / 365.5 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005569/0.1596, allocations: 6.652 MB / 372.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1596, allocations: 0 / 372.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1596, allocations: 4 kB / 372.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001554/0.1598, allocations: 0 / 372.2 MB, free: 7.086 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.01063/0.1704, allocations: 4.653 MB / 376.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1705, allocations: 8.031 kB / 376.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005901/0.1711, allocations: 493.5 kB / 377.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002844/0.1739, allocations: 0.6714 MB / 378 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1836/0.3575, allocations: 2.337 MB / 380.3 MB, free: 48.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.3578, allocations: 269.2 kB / 380.6 MB, free: 48.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008087/0.3586, allocations: 345.5 kB / 380.9 MB, free: 48.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008492/0.3671, allocations: 4.458 MB / 385.4 MB, free: 46.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.662e-05/0.3672, allocations: 7.625 kB / 385.4 MB, free: 46.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/0.3675, allocations: 144.7 kB / 385.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001806/0.3677, allocations: 165.1 kB / 385.7 MB, free: 46.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006812/0.3745, allocations: 3.739 MB / 389.4 MB, free: 45.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0191/0.3936, allocations: 14.49 MB / 403.9 MB, free: 35.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003576/0.3972, allocations: 5.367 MB / 409.3 MB, free: 30.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.3987, allocations: 1.274 MB / 410.6 MB, free: 29.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004999/0.4037, allocations: 3.803 MB / 414.4 MB, free: 25.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.4038, allocations: 43.88 kB / 414.4 MB, free: 25.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 2.715e-06/0.4038, allocations: 0 / 414.4 MB, free: 25.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008113/0.4119, allocations: 5.475 MB / 419.9 MB, free: 19.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.412, allocations: 64.72 kB / 420 MB, free: 19.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002312/0.4143, allocations: 2.098 MB / 422 MB, free: 17.35 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.465e-05/0.4144, allocations: 49.7 kB / 422.1 MB, free: 17.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000647/0.415, allocations: 1.66 MB / 423.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.4153, allocations: 464.9 kB / 424.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003788/0.4156, allocations: 335.2 kB / 424.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.622e-05/0.4157, allocations: 301.1 kB / 424.8 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008723/0.4166, allocations: 0.7222 MB / 425.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.4177, allocations: 1.349 MB / 426.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002026/0.4197, allocations: 2.227 MB / 429.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.4197, allocations: 4 kB / 429.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003157/0.4229, allocations: 2.517 MB / 431.7 MB, free: 7.121 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.4229, allocations: 12.5 kB / 431.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.4229, allocations: 29.53 kB / 431.7 MB, free: 7.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003373/0.4233, allocations: 146.4 kB / 431.8 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.4247, allocations: 459.2 kB / 432.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.4263, allocations: 3.079 MB / 435.4 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.4278, allocations: 115.9 kB / 435.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.4279, allocations: 83.98 kB / 435.6 MB, free: 2.938 MB / 318.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.001504/0.4294, allocations: 1.044 MB / 436.6 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.4297, allocations: 217.3 kB / 436.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003079/0.4328, allocations: 2.182 MB / 439 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/0.4329, allocations: 15.94 kB / 439 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.4329, allocations: 4 kB / 439 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.4329, allocations: 7.969 kB / 439 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007885/0.4408, allocations: 5.164 MB / 444.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.4408, allocations: 4 kB / 444.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009322/0.4418, allocations: 227.7 kB / 444.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006718/0.4424, allocations: 271.5 kB / 444.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.294e-05/0.4425, allocations: 31.98 kB / 444.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006124/0.4487, allocations: 7.106 MB / 451.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/0.4487, allocations: 11.88 kB / 451.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005034/0.4537, allocations: 3.179 MB / 455 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/0.4551, allocations: 454.7 kB / 455.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003362/0.4554, allocations: 28 kB / 455.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4564, allocations: 71.91 kB / 455.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4567, allocations: 100.8 kB / 455.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.386e-05/0.4568, allocations: 43.92 kB / 455.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002241/0.459, allocations: 1.423 MB / 457.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.459, allocations: 0 / 457.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002289/0.4613, allocations: 0.5594 MB / 457.7 MB, free: 11.96 MB / 350.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.005078/0.4664, allocations: 3.791 MB / 461.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003338/0.4698, allocations: 2.098 MB / 463.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4698, allocations: 0 / 463.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.4718, allocations: 1.376 MB / 464.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/0.4747, allocations: 0.5184 MB / 465.5 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04447/0.5192, allocations: 25.32 MB / 490.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00201/0.5213, allocations: 2.413 MB / 493.2 MB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001722/0.523, allocations: 0.4984 MB / 493.7 MB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/0.5247, allocations: 1.3 MB / 495 MB, free: 4.297 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.5247, allocations: 0 / 495 MB, free: 4.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4674/0.9921, allocations: 51.21 MB / 0.5334 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/0.9924, allocations: 260.3 kB / 0.5336 GB, free: 0.707 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.188/4.181, allocations: 0 / 0.5336 GB, free: 0.707 MB / 430.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","../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