Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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.001312/0.001312, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001399/0.001399, allocations: 189.4 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 52 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2819, allocations: 49.44 MB / 400.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.0255/0.3074, allocations: 21.74 MB / 422 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.3216, allocations: 6.389 MB / 428.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004581/0.3262, allocations: 147.4 kB / 428.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005238/0.3316, allocations: 1.482 MB / 430 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008233/0.3398, allocations: 2.061 MB / 432.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004334/0.3442, allocations: 1.279 MB / 433.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.3546, allocations: 6.538 MB / 439.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009504/0.3641, allocations: 5.571 MB / 445.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005594/0.3698, allocations: 2.99 MB / 448.5 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00659/0.3764, allocations: 3.569 MB / 452 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001968/0.3784, allocations: 0.8164 MB / 452.8 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003428/0.3818, allocations: 1.097 MB / 453.9 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002761/0.3846, allocations: 2.026 MB / 456 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006572/0.3912, allocations: 3.539 MB / 459.5 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.408, allocations: 10.82 MB / 470.3 MB, free: 2.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.408, allocations: 3.984 kB / 470.3 MB, free: 2.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.408, allocations: 0 / 470.3 MB, free: 2.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002959/0.4083, allocations: 0 / 470.3 MB, free: 2.516 MB / 382.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.01969/0.428, allocations: 7.083 MB / 477.4 MB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.4281, allocations: 11.89 kB / 477.4 MB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001298/0.4294, allocations: 0.7329 MB / 478.2 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005132/0.4345, allocations: 1.098 MB / 479.3 MB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008737/0.4433, allocations: 3.771 MB / 483 MB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004411/0.4438, allocations: 406.9 kB / 483.4 MB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001651/0.4454, allocations: 0.5233 MB / 483.9 MB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0149/0.4603, allocations: 7.071 MB / 491 MB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.4605, allocations: 7.953 kB / 491 MB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005518/0.4611, allocations: 220 kB / 491.2 MB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002687/0.4613, allocations: 258.6 kB / 491.5 MB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.4732, allocations: 5.948 MB / 497.4 MB, free: 7.141 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04068/0.5139, allocations: 22.22 MB / 0.5075 GB, free: 372 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009567/0.5235, allocations: 8.302 MB / 0.5156 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003742/0.5273, allocations: 2.159 MB / 0.5177 GB, free: 5.008 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.5388, allocations: 6.173 MB / 0.5237 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/0.5389, allocations: 56.56 kB / 0.5238 GB, free: 14.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.919e-06/0.5389, allocations: 4 kB / 0.5238 GB, free: 14.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.02458/0.5635, allocations: 11.12 MB / 0.5346 GB, free: 3.293 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.5635, allocations: 81.41 kB / 0.5347 GB, free: 3.203 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00497/0.5685, allocations: 3.148 MB / 0.5378 GB, free: 56 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.2002/0.7688, allocations: 64.22 kB / 0.5378 GB, free: 126.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002581/0.7714, allocations: 2.568 MB / 0.5404 GB, free: 126.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001058/0.7725, allocations: 0.869 MB / 0.5412 GB, free: 125.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001168/0.7737, allocations: 0.5623 MB / 0.5418 GB, free: 125.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.155e-05/0.7737, allocations: 302.6 kB / 0.542 GB, free: 125.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002472/0.7762, allocations: 1.339 MB / 0.5433 GB, free: 124.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.7783, allocations: 2.341 MB / 0.5456 GB, free: 123 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00413/0.7825, allocations: 3.917 MB / 0.5495 GB, free: 120.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.7825, allocations: 7.906 kB / 0.5495 GB, free: 120.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006784/0.7893, allocations: 4.725 MB / 0.5541 GB, free: 118.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.7894, allocations: 19 kB / 0.5541 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-05/0.7894, allocations: 31.34 kB / 0.5541 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.7905, allocations: 0.5324 MB / 0.5546 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002407/0.7929, allocations: 0.7388 MB / 0.5554 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006625/0.7995, allocations: 10.28 MB / 0.5654 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/0.8023, allocations: 183.5 kB / 0.5656 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.8025, allocations: 144.2 kB / 0.5657 GB, free: 109.4 MB / 462.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.002574/0.8051, allocations: 1.568 MB / 0.5673 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005745/0.8057, allocations: 369.1 kB / 0.5676 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005595/0.8113, allocations: 4.059 MB / 0.5716 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.8113, allocations: 24 kB / 0.5716 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.8113, allocations: 11.94 kB / 0.5716 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/0.8113, allocations: 11.95 kB / 0.5716 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.8229, allocations: 8.966 MB / 0.5804 GB, free: 95.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.8229, allocations: 8 kB / 0.5804 GB, free: 95.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.8245, allocations: 404 kB / 0.5808 GB, free: 94.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/0.8262, allocations: 0.7384 MB / 0.5815 GB, free: 94.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.8263, allocations: 64.59 kB / 0.5815 GB, free: 94.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.8376, allocations: 16.76 MB / 0.5979 GB, free: 76.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.8377, allocations: 11.94 kB / 0.5979 GB, free: 76.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008434/0.8461, allocations: 5.864 MB / 0.6037 GB, free: 70.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.8476, allocations: 0.7154 MB / 0.6044 GB, free: 69.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004832/0.8481, allocations: 60 kB / 0.6044 GB, free: 69.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001817/0.8499, allocations: 139.8 kB / 0.6045 GB, free: 69.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/0.8504, allocations: 188.4 kB / 0.6047 GB, free: 69.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/0.8505, allocations: 71.97 kB / 0.6048 GB, free: 69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002599/0.8531, allocations: 2.123 MB / 0.6069 GB, free: 66.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8531, allocations: 0 / 0.6069 GB, free: 66.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002856/0.856, allocations: 0.9923 MB / 0.6078 GB, free: 65.9 MB / 462.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.007361/0.8634, allocations: 6.574 MB / 0.6143 GB, free: 59.17 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005111/0.8685, allocations: 4.151 MB / 0.6183 GB, free: 54.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.8685, allocations: 4 kB / 0.6183 GB, free: 54.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/0.8719, allocations: 2.758 MB / 0.621 GB, free: 52.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0039/0.8758, allocations: 0.9448 MB / 0.6219 GB, free: 51.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04525/0.921, allocations: 35.61 MB / 0.6567 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002501/0.9236, allocations: 3.411 MB / 0.66 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002276/0.9259, allocations: 0.8073 MB / 0.6608 GB, free: 9.891 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002077/0.928, allocations: 2.104 MB / 0.6629 GB, free: 7.785 MB / 462.1 MB Notification: Performance of SimCode: time 7.02e-07/0.928, allocations: 4 kB / 0.6629 GB, free: 7.781 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.362/1.29, allocations: 88.2 MB / 0.749 GB, free: 172.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.55/18.84, allocations: 8.672 kB / 0.749 GB, free: 172.7 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches