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.001521/0.001522, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001767/0.001767, allocations: 192 kB / 18.51 MB, free: 4.508 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.38/1.38, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001259/0.001259, allocations: 51.94 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.106, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01801/0.1241, allocations: 15.83 MB / 343.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.1356, allocations: 5.404 MB / 348.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00256/0.1381, allocations: 91.62 kB / 348.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003209/0.1414, allocations: 1.11 MB / 349.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004038/0.1455, allocations: 1.347 MB / 351.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002446/0.1479, allocations: 0.9549 MB / 352.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004789/0.1527, allocations: 3.955 MB / 356.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004382/0.1571, allocations: 3.552 MB / 359.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.1595, allocations: 1.869 MB / 361.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003076/0.1626, allocations: 2.265 MB / 363.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001015/0.1636, allocations: 0.5234 MB / 364.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00183/0.1655, allocations: 0.7536 MB / 365 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001452/0.1669, allocations: 1.286 MB / 366.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002913/0.1699, allocations: 2.248 MB / 368.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006854/0.1767, allocations: 6.815 MB / 375.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.1768, allocations: 0 / 375.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1768, allocations: 0 / 375.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002596/0.177, allocations: 0 / 375.4 MB, free: 4.121 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.1466/0.3236, allocations: 4.651 MB / 380 MB, free: 49.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.3237, allocations: 8.844 kB / 380.1 MB, free: 49.35 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00081/0.3245, allocations: 492.2 kB / 380.5 MB, free: 49.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003097/0.3276, allocations: 0.6785 MB / 381.2 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004605/0.3322, allocations: 2.353 MB / 383.6 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002252/0.3325, allocations: 271.5 kB / 383.8 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005517/0.333, allocations: 342.8 kB / 384.2 MB, free: 47.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007262/0.3403, allocations: 4.465 MB / 388.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.927e-05/0.3404, allocations: 15 kB / 388.6 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/0.3407, allocations: 137.2 kB / 388.8 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.3409, allocations: 164.1 kB / 388.9 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005778/0.3467, allocations: 3.741 MB / 392.7 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01634/0.363, allocations: 14.49 MB / 407.2 MB, free: 33.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003611/0.3666, allocations: 5.371 MB / 412.5 MB, free: 27.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.3682, allocations: 1.27 MB / 413.8 MB, free: 25.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00522/0.3734, allocations: 3.801 MB / 417.6 MB, free: 21.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.3735, allocations: 47.88 kB / 417.7 MB, free: 21.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 2.655e-06/0.3735, allocations: 0 / 417.7 MB, free: 21.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.007784/0.3813, allocations: 5.471 MB / 423.1 MB, free: 16.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/0.3813, allocations: 68.72 kB / 423.2 MB, free: 16.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/0.3836, allocations: 2.098 MB / 425.3 MB, free: 14.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-05/0.3837, allocations: 45.7 kB / 425.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006653/0.3843, allocations: 1.657 MB / 427 MB, free: 12.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.3846, allocations: 464.9 kB / 427.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003877/0.385, allocations: 335.2 kB / 427.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.411e-05/0.385, allocations: 308.9 kB / 428.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008825/0.3859, allocations: 0.7184 MB / 428.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.387, allocations: 1.349 MB / 430.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002065/0.389, allocations: 2.226 MB / 432.4 MB, free: 6.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.3891, allocations: 4 kB / 432.4 MB, free: 6.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003009/0.3921, allocations: 2.521 MB / 434.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3921, allocations: 12 kB / 434.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.3921, allocations: 24.5 kB / 434.9 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003141/0.3925, allocations: 142.4 kB / 435.1 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.3939, allocations: 467.3 kB / 435.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001831/0.3957, allocations: 3.353 MB / 438.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.397, allocations: 119.8 kB / 439 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.3972, allocations: 80 kB / 439.1 MB, free: 15.33 MB / 334.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.001507/0.3987, allocations: 1.044 MB / 440.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000313/0.399, allocations: 213.4 kB / 440.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003384/0.4024, allocations: 2.181 MB / 442.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4024, allocations: 12 kB / 442.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.4024, allocations: 4 kB / 442.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.4024, allocations: 7.969 kB / 442.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007439/0.4099, allocations: 5.168 MB / 447.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4099, allocations: 0 / 447.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009577/0.4109, allocations: 223.7 kB / 447.9 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006873/0.4116, allocations: 279.5 kB / 448.2 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.134e-05/0.4117, allocations: 35.98 kB / 448.2 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006806/0.4185, allocations: 7.806 MB / 456 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.4185, allocations: 7.938 kB / 456 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004711/0.4232, allocations: 3.175 MB / 459.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008553/0.4241, allocations: 450.4 kB / 459.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.4244, allocations: 28 kB / 459.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009408/0.4253, allocations: 71.91 kB / 459.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.4255, allocations: 100.8 kB / 459.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-05/0.4256, allocations: 39.98 kB / 459.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002107/0.4277, allocations: 1.427 MB / 461.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4278, allocations: 0 / 461.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002001/0.4298, allocations: 0.5602 MB / 461.9 MB, free: 7.652 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.004927/0.4347, allocations: 3.784 MB / 465.7 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004501/0.4392, allocations: 2.556 MB / 468.2 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4392, allocations: 0 / 468.2 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/0.4412, allocations: 1.383 MB / 469.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/0.444, allocations: 0.5547 MB / 470.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03262/0.4766, allocations: 23.93 MB / 494.1 MB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002/0.4786, allocations: 2.413 MB / 496.5 MB, free: 2.691 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001579/0.4802, allocations: 0.4906 MB / 497 MB, free: 2.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.4817, allocations: 1.304 MB / 498.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4817, allocations: 0 / 498.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2616/0.7434, allocations: 52.43 MB / 0.5378 GB, free: 141.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.31, allocations: 5.391 kB / 0.5378 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","/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