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.001551/0.001551, allocations: 114.5 kB / 17.28 MB, free: 6.219 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.001721/0.001721, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.539/1.539, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.001151/0.001152, allocations: 52.14 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09158/0.09274, allocations: 46.63 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01667/0.1095, allocations: 15.64 MB / 342.5 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.1213, allocations: 5.303 MB / 347.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004087/0.1254, allocations: 87.62 kB / 347.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004149/0.1296, allocations: 0.9715 MB / 348.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005917/0.1356, allocations: 1.205 MB / 350.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002533/0.1381, allocations: 0.8655 MB / 351 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00642/0.1446, allocations: 4.037 MB / 355 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005153/0.1497, allocations: 3.556 MB / 358.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003279/0.153, allocations: 1.826 MB / 360.4 MB, free: 3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003388/0.1564, allocations: 2.265 MB / 362.6 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008976/0.1574, allocations: 0.5117 MB / 363.1 MB, free: 220 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.1592, allocations: 0.7497 MB / 363.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.1605, allocations: 1.286 MB / 365.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002974/0.1634, allocations: 2.256 MB / 367.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007802/0.1713, allocations: 6.792 MB / 374.2 MB, free: 5.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.1713, allocations: 4 kB / 374.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1713, allocations: 0 / 374.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001575/0.1715, allocations: 0 / 374.2 MB, free: 5.094 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.01108/0.1826, allocations: 4.653 MB / 378.9 MB, free: 376 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.1826, allocations: 12.03 kB / 378.9 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1727/0.3554, allocations: 487.9 kB / 379.4 MB, free: 49.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003382/0.3588, allocations: 0.6705 MB / 380 MB, free: 49.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004173/0.363, allocations: 2.337 MB / 382.4 MB, free: 48.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.3632, allocations: 262.2 kB / 382.6 MB, free: 48.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004477/0.3637, allocations: 350.9 kB / 383 MB, free: 48.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007535/0.3712, allocations: 4.464 MB / 387.4 MB, free: 46.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.477e-05/0.3713, allocations: 7.25 kB / 387.5 MB, free: 46.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.3716, allocations: 143 kB / 387.6 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/0.3718, allocations: 166.6 kB / 387.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005968/0.3777, allocations: 3.739 MB / 391.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01726/0.395, allocations: 14.5 MB / 406 MB, free: 34.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00354/0.3986, allocations: 5.358 MB / 411.4 MB, free: 28.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.4001, allocations: 1.282 MB / 412.6 MB, free: 27.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005037/0.4051, allocations: 3.803 MB / 416.4 MB, free: 23.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.4052, allocations: 43.88 kB / 416.5 MB, free: 23.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 2.826e-06/0.4052, allocations: 0 / 416.5 MB, free: 23.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008061/0.4133, allocations: 5.471 MB / 422 MB, free: 17.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.4133, allocations: 68.72 kB / 422 MB, free: 17.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/0.4158, allocations: 2.094 MB / 424.1 MB, free: 15.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.307e-05/0.4159, allocations: 53.7 kB / 424.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008599/0.4168, allocations: 1.656 MB / 425.8 MB, free: 14.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000321/0.4171, allocations: 461.1 kB / 426.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000446/0.4175, allocations: 339.2 kB / 426.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.448e-05/0.4176, allocations: 305.1 kB / 426.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008897/0.4185, allocations: 0.7145 MB / 427.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.4197, allocations: 1.349 MB / 429 MB, free: 10.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/0.4221, allocations: 2.223 MB / 431.2 MB, free: 8.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.4221, allocations: 8 kB / 431.2 MB, free: 8.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003407/0.4255, allocations: 2.517 MB / 433.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.4256, allocations: 20.09 kB / 433.7 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/0.4256, allocations: 23.98 kB / 433.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003562/0.426, allocations: 134.5 kB / 433.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.4274, allocations: 471.2 kB / 434.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/0.4293, allocations: 3.348 MB / 437.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.4307, allocations: 115.8 kB / 437.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.4309, allocations: 84 kB / 437.9 MB, free: 1.066 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.001304/0.4322, allocations: 1.051 MB / 438.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.4325, allocations: 209.5 kB / 439.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/0.4359, allocations: 2.181 MB / 441.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4359, allocations: 15.98 kB / 441.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4359, allocations: 4 kB / 441.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.4359, allocations: 7.984 kB / 441.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007727/0.4437, allocations: 5.171 MB / 446.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4437, allocations: 0 / 446.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009877/0.4447, allocations: 231.7 kB / 446.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006893/0.4454, allocations: 282.7 kB / 447 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.057e-05/0.4455, allocations: 27.98 kB / 447.1 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006691/0.4522, allocations: 7.799 MB / 454.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.4522, allocations: 4 kB / 454.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/0.4571, allocations: 3.175 MB / 458 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009969/0.4581, allocations: 458.3 kB / 458.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002609/0.4584, allocations: 27.98 kB / 458.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009451/0.4594, allocations: 75.92 kB / 458.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.4596, allocations: 96.09 kB / 458.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.851e-05/0.4597, allocations: 39.98 kB / 458.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002007/0.4617, allocations: 1.423 MB / 460.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4617, allocations: 0 / 460.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001849/0.4635, allocations: 0.5608 MB / 460.7 MB, free: 9.371 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.004757/0.4683, allocations: 3.787 MB / 464.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004631/0.473, allocations: 2.564 MB / 467 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.473, allocations: 4 kB / 467.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.4749, allocations: 1.379 MB / 468.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/0.4772, allocations: 0.5615 MB / 469 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03894/0.5161, allocations: 25.32 MB / 494.3 MB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/0.5185, allocations: 2.416 MB / 496.7 MB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001658/0.5202, allocations: 494.5 kB / 497.2 MB, free: 2.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/0.5218, allocations: 1.312 MB / 498.5 MB, free: 1.207 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5218, allocations: 0 / 498.5 MB, free: 1.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2653/0.7871, allocations: 52.31 MB / 0.5379 GB, free: 141.4 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.7873, allocations: 252.7 kB / 0.5382 GB, free: 141.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.273/4.061, allocations: 0 / 0.5382 GB, free: 141.1 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