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.001119/0.001119, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001153/0.001153, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.383/1.383, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001306/0.001306, allocations: 47.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07891/0.08022, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1767/0.2569, allocations: 21.69 MB / 396.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.2718, allocations: 6.432 MB / 402.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004468/0.2763, allocations: 124.9 kB / 402.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0055/0.2818, allocations: 1.484 MB / 404.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.292, allocations: 2.034 MB / 406.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005097/0.2971, allocations: 1.309 MB / 407.7 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.3088, allocations: 6.528 MB / 414.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01092/0.3197, allocations: 5.509 MB / 419.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006455/0.3262, allocations: 3.001 MB / 422.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007398/0.3337, allocations: 3.565 MB / 426.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002744/0.3364, allocations: 0.8164 MB / 427.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004518/0.341, allocations: 1.101 MB / 428.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003409/0.3444, allocations: 2.022 MB / 430.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007463/0.3519, allocations: 3.539 MB / 433.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01505/0.367, allocations: 10.79 MB / 444.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.367, allocations: 0 / 444.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.367, allocations: 0 / 444.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003829/0.3674, allocations: 0 / 444.6 MB, free: 9.723 MB / 366.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.02262/0.39, allocations: 6.911 MB / 451.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3901, allocations: 15.97 kB / 451.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002596/0.3927, allocations: 0.729 MB / 452.3 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006339/0.3991, allocations: 1.067 MB / 453.3 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009718/0.4088, allocations: 3.516 MB / 456.8 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005301/0.4094, allocations: 399.1 kB / 457.2 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002249/0.4116, allocations: 0.531 MB / 457.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01828/0.4299, allocations: 7.052 MB / 464.8 MB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002202/0.4302, allocations: 15.89 kB / 464.8 MB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001258/0.4315, allocations: 220 kB / 465 MB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002724/0.4317, allocations: 258.6 kB / 465.3 MB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.4448, allocations: 5.944 MB / 471.2 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0436/0.4885, allocations: 22.16 MB / 493.4 MB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01021/0.4987, allocations: 8.281 MB / 0.4899 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003932/0.5027, allocations: 2.163 MB / 0.492 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/0.5159, allocations: 6.172 MB / 0.4981 GB, free: 6.441 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.516, allocations: 56.56 kB / 0.4981 GB, free: 6.375 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 3.897e-06/0.516, allocations: 0 / 0.4981 GB, free: 6.375 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02404/0.5401, allocations: 11.15 MB / 0.509 GB, free: 10.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.5401, allocations: 73.41 kB / 0.5091 GB, free: 10.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005897/0.5461, allocations: 3.156 MB / 0.5122 GB, free: 7.727 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003229/0.5464, allocations: 61.7 kB / 0.5122 GB, free: 7.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.5482, allocations: 2.506 MB / 0.5147 GB, free: 5.125 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008199/0.5491, allocations: 0.828 MB / 0.5155 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001103/0.5502, allocations: 0.5614 MB / 0.516 GB, free: 3.715 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.5503, allocations: 301.1 kB / 0.5163 GB, free: 3.418 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002342/0.5526, allocations: 1.334 MB / 0.5176 GB, free: 2.082 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002988/0.5556, allocations: 2.339 MB / 0.5199 GB, free: 15.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005577/0.5612, allocations: 3.924 MB / 0.5237 GB, free: 10.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-05/0.5613, allocations: 8 kB / 0.5237 GB, free: 10.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008344/0.5696, allocations: 4.701 MB / 0.5283 GB, free: 6.078 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/0.5697, allocations: 23.98 kB / 0.5283 GB, free: 6.055 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.652e-05/0.5697, allocations: 28 kB / 0.5284 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.571, allocations: 0.5307 MB / 0.5289 GB, free: 5.477 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002969/0.574, allocations: 0.7449 MB / 0.5296 GB, free: 4.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.5841, allocations: 10.28 MB / 0.5397 GB, free: 9.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002881/0.5871, allocations: 183.8 kB / 0.5398 GB, free: 9.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004631/0.5875, allocations: 144 kB / 0.54 GB, free: 9.43 MB / 478.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.003332/0.5909, allocations: 1.574 MB / 0.5415 GB, free: 7.844 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009029/0.5918, allocations: 347.7 kB / 0.5418 GB, free: 7.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007787/0.5996, allocations: 4.049 MB / 0.5458 GB, free: 3.352 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.5996, allocations: 24 kB / 0.5458 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.362e-05/0.5997, allocations: 8 kB / 0.5458 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.391e-05/0.5997, allocations: 11.95 kB / 0.5458 GB, free: 3.309 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1855/0.7852, allocations: 8.966 MB / 0.5546 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.7853, allocations: 4.719 kB / 0.5546 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/0.7871, allocations: 408.8 kB / 0.555 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001896/0.7891, allocations: 0.7322 MB / 0.5557 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/0.7893, allocations: 67.55 kB / 0.5558 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/0.8016, allocations: 16.73 MB / 0.5721 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.8016, allocations: 8.969 kB / 0.5721 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00914/0.8108, allocations: 5.838 MB / 0.5778 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001879/0.8127, allocations: 0.6953 MB / 0.5785 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005548/0.8133, allocations: 58.44 kB / 0.5785 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.815, allocations: 143.3 kB / 0.5787 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004588/0.8155, allocations: 180.9 kB / 0.5789 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/0.8156, allocations: 75.52 kB / 0.5789 GB, free: 127.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003499/0.8191, allocations: 2.13 MB / 0.581 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8192, allocations: 0 / 0.581 GB, free: 127.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004144/0.8233, allocations: 0.9906 MB / 0.582 GB, free: 127 MB / 478.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.00885/0.8322, allocations: 6.536 MB / 0.5884 GB, free: 123.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005488/0.8377, allocations: 4.148 MB / 0.5924 GB, free: 121.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/0.8377, allocations: 6.844 kB / 0.5924 GB, free: 121.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003516/0.8413, allocations: 2.74 MB / 0.5951 GB, free: 120.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004629/0.8459, allocations: 0.9634 MB / 0.596 GB, free: 119.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04426/0.8902, allocations: 35.47 MB / 0.6307 GB, free: 85.05 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002467/0.8927, allocations: 3.407 MB / 0.634 GB, free: 81.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002289/0.895, allocations: 0.8112 MB / 0.6348 GB, free: 80.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/0.897, allocations: 2.108 MB / 0.6368 GB, free: 78.68 MB / 478.1 MB Notification: Performance of SimCode: time 9.22e-07/0.897, allocations: 0 / 0.6368 GB, free: 78.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1311/1.028, allocations: 88.94 MB / 0.7237 GB, free: 5.602 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/17.18, allocations: 12.81 kB / 0.7237 GB, free: 5.59 MB / 494.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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