Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.001032/0.001033, allocations: 102 kB / 17.16 MB, free: 6.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.001024/0.001024, allocations: 190 kB / 18.07 MB, free: 5.414 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.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001151, allocations: 51.94 kB / 280.1 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1041, allocations: 46.62 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02281/0.1269, allocations: 21.37 MB / 348.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01501/0.142, allocations: 6.376 MB / 354.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006241/0.1483, allocations: 115.5 kB / 354.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005949/0.1543, allocations: 1.267 MB / 355.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009372/0.1637, allocations: 1.853 MB / 357.7 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003979/0.1677, allocations: 1.201 MB / 358.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01157/0.1793, allocations: 7.084 MB / 366 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005746/0.1851, allocations: 4.599 MB / 370.6 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004018/0.1891, allocations: 2.498 MB / 373.1 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007277/0.1964, allocations: 3.362 MB / 376.4 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00326/0.1998, allocations: 496 kB / 376.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00488/0.2047, allocations: 0.7886 MB / 377.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2135/0.4182, allocations: 1.679 MB / 379.4 MB, free: 20.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006954/0.4252, allocations: 3.178 MB / 382.6 MB, free: 20.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01645/0.4417, allocations: 10.42 MB / 393 MB, free: 18.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.4418, allocations: 0 / 393 MB, free: 18.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.4418, allocations: 0 / 393 MB, free: 18.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003769/0.4422, allocations: 0 / 393 MB, free: 18.97 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02316/0.4653, allocations: 6.918 MB / 399.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/0.4654, allocations: 9.844 kB / 399.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001459/0.4669, allocations: 0.7305 MB / 400.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00498/0.4719, allocations: 1.068 MB / 401.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007459/0.4794, allocations: 3.448 MB / 405.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004046/0.4798, allocations: 409.3 kB / 405.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001562/0.4814, allocations: 0.5305 MB / 406.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02249/0.5039, allocations: 7.052 MB / 413.1 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004662/0.5044, allocations: 13.67 kB / 413.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00286/0.5073, allocations: 222.6 kB / 413.4 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004314/0.5077, allocations: 260.7 kB / 413.6 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01795/0.5257, allocations: 5.938 MB / 419.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04896/0.5747, allocations: 22.43 MB / 442 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008712/0.5835, allocations: 8.28 MB / 450.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003589/0.5871, allocations: 2.18 MB / 452.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01201/0.5991, allocations: 6.19 MB / 458.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.656e-05/0.5992, allocations: 63.62 kB / 458.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 3.808e-06/0.5992, allocations: 4 kB / 458.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02254/0.6218, allocations: 11.14 MB / 469.8 MB, free: 2.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.6218, allocations: 77.41 kB / 469.9 MB, free: 2.109 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005968/0.6278, allocations: 3.152 MB / 473.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.6281, allocations: 69.69 kB / 473.1 MB, free: 14.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002069/0.6302, allocations: 2.493 MB / 475.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008918/0.6311, allocations: 0.836 MB / 476.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001077/0.6322, allocations: 0.5575 MB / 477 MB, free: 10.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.6323, allocations: 303.8 kB / 477.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002392/0.6347, allocations: 1.334 MB / 478.7 MB, free: 9.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003171/0.6379, allocations: 2.339 MB / 481 MB, free: 6.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005835/0.6437, allocations: 3.921 MB / 484.9 MB, free: 2.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.754e-05/0.6438, allocations: 15.98 kB / 484.9 MB, free: 2.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008457/0.6522, allocations: 4.699 MB / 489.6 MB, free: 13.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.6523, allocations: 20.66 kB / 489.7 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.312e-05/0.6523, allocations: 28 kB / 489.7 MB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/0.6536, allocations: 0.5308 MB / 490.2 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002633/0.6562, allocations: 0.7443 MB / 491 MB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008597/0.6648, allocations: 9.438 MB / 0.4887 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/0.668, allocations: 187.8 kB / 0.4888 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/0.6684, allocations: 144 kB / 0.489 GB, free: 2.027 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003498/0.6719, allocations: 1.567 MB / 0.4905 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009545/0.6729, allocations: 351.7 kB / 0.4908 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007147/0.68, allocations: 4.044 MB / 0.4948 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/0.6801, allocations: 20 kB / 0.4948 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.509e-05/0.6801, allocations: 11.94 kB / 0.4948 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/0.6801, allocations: 15.95 kB / 0.4948 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01695/0.6971, allocations: 8.984 MB / 0.5036 GB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/0.6971, allocations: 8 kB / 0.5036 GB, free: 2.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00169/0.6988, allocations: 408.2 kB / 0.504 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/0.7008, allocations: 0.7341 MB / 0.5047 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002136/0.701, allocations: 67.97 kB / 0.5048 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01428/0.7153, allocations: 15.32 MB / 0.5198 GB, free: 1.406 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.7153, allocations: 10.72 kB / 0.5198 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009551/0.7249, allocations: 5.839 MB / 0.5255 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002191/0.7271, allocations: 0.692 MB / 0.5261 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001231/0.7283, allocations: 63.92 kB / 0.5262 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/0.7306, allocations: 135.9 kB / 0.5263 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004511/0.731, allocations: 183.3 kB / 0.5265 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.7312, allocations: 71.98 kB / 0.5266 GB, free: 10.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004153/0.7354, allocations: 2.127 MB / 0.5287 GB, free: 8.156 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7354, allocations: 0 / 0.5287 GB, free: 8.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004582/0.74, allocations: 0.9922 MB / 0.5296 GB, free: 7.164 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009834/0.7498, allocations: 6.553 MB / 0.536 GB, free: 0.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1709/0.9207, allocations: 4.119 MB / 0.54 GB, free: 167 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.9208, allocations: 1.5 kB / 0.54 GB, free: 167 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004424/0.9252, allocations: 2.75 MB / 0.5427 GB, free: 166 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004985/0.9302, allocations: 0.9019 MB / 0.5436 GB, free: 166 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0745/1.005, allocations: 45.3 MB / 0.5879 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002845/1.008, allocations: 3.411 MB / 0.5912 GB, free: 125.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003023/1.011, allocations: 0.8034 MB / 0.592 GB, free: 124.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002185/1.013, allocations: 2.1 MB / 0.594 GB, free: 122.3 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/1.013, allocations: 0 / 0.594 GB, free: 122.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/1.132, allocations: 87.12 MB / 0.6791 GB, free: 34.96 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.132, allocations: 249.9 kB / 0.6793 GB, free: 34.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.148/5.28, allocations: 4.062 kB / 0.6793 GB, free: 34.7 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_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_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches