Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001146/0.001146, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 71.86 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2841, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.03109/0.3152, allocations: 27.12 MB / 435.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01732/0.3326, allocations: 7.514 MB / 443.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006208/0.3389, allocations: 179.3 kB / 443.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006432/0.3454, allocations: 1.848 MB / 445.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009847/0.3553, allocations: 2.438 MB / 447.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005704/0.361, allocations: 1.558 MB / 449.5 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01354/0.3745, allocations: 8.744 MB / 458.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0137/0.3883, allocations: 7.433 MB / 465.6 MB, free: 8.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008681/0.397, allocations: 4.097 MB / 469.7 MB, free: 4.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009392/0.4065, allocations: 4.932 MB / 474.7 MB, free: 15.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003801/0.4103, allocations: 1.137 MB / 475.8 MB, free: 14.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005011/0.4153, allocations: 1.367 MB / 477.2 MB, free: 12.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004837/0.4202, allocations: 2.548 MB / 479.7 MB, free: 10.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009719/0.43, allocations: 4.796 MB / 484.5 MB, free: 5.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02416/0.4542, allocations: 14.96 MB / 499.5 MB, free: 6.492 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.4542, allocations: 0 / 499.5 MB, free: 6.492 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.4542, allocations: 0 / 499.5 MB, free: 6.492 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005604/0.4548, allocations: 0 / 499.5 MB, free: 6.492 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.03346/0.4883, allocations: 9.622 MB / 0.4972 GB, free: 12.76 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.4883, allocations: 8.031 kB / 0.4972 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00377/0.4921, allocations: 0.9921 MB / 0.4981 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01091/0.5031, allocations: 1.791 MB / 0.4999 GB, free: 9.953 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.5167, allocations: 5.165 MB / 0.5049 GB, free: 4.719 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006196/0.5174, allocations: 0.5342 MB / 0.5054 GB, free: 4.184 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003003/0.5204, allocations: 0.7108 MB / 0.5061 GB, free: 3.473 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02646/0.5469, allocations: 9.793 MB / 0.5157 GB, free: 9.602 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002746/0.5472, allocations: 7.953 kB / 0.5157 GB, free: 9.594 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001892/0.5491, allocations: 303.9 kB / 0.516 GB, free: 9.297 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003753/0.5495, allocations: 358.6 kB / 0.5163 GB, free: 8.945 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02072/0.5702, allocations: 8.307 MB / 0.5245 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4906/1.061, allocations: 30.57 MB / 0.5543 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/1.074, allocations: 17.24 MB / 0.5711 GB, free: 86.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006779/1.081, allocations: 3.785 MB / 0.5748 GB, free: 84.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01593/1.097, allocations: 9.27 MB / 0.5839 GB, free: 78.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/1.097, allocations: 68.03 kB / 0.584 GB, free: 78.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 4.749e-06/1.097, allocations: 0 / 0.584 GB, free: 78.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.02489/1.122, allocations: 12.49 MB / 0.5962 GB, free: 69.15 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/1.122, allocations: 81.69 kB / 0.5962 GB, free: 69.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005797/1.128, allocations: 3.817 MB / 0.6 GB, free: 65.24 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005675/1.128, allocations: 77.7 kB / 0.6 GB, free: 65.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/1.13, allocations: 3.344 MB / 0.6033 GB, free: 62.25 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/1.132, allocations: 1.037 MB / 0.6043 GB, free: 61.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/1.133, allocations: 0.6494 MB / 0.6049 GB, free: 60.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.215e-05/1.133, allocations: 305.1 kB / 0.6052 GB, free: 60.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002297/1.135, allocations: 1.538 MB / 0.6067 GB, free: 58.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002812/1.138, allocations: 2.681 MB / 0.6094 GB, free: 55.55 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005196/1.143, allocations: 4.51 MB / 0.6138 GB, free: 50.51 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.187e-05/1.143, allocations: 8 kB / 0.6138 GB, free: 50.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.009248/1.152, allocations: 5.371 MB / 0.619 GB, free: 45.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/1.152, allocations: 20 kB / 0.619 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-05/1.152, allocations: 36 kB / 0.6191 GB, free: 45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/1.154, allocations: 0.5814 MB / 0.6196 GB, free: 44.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003183/1.157, allocations: 0.8502 MB / 0.6205 GB, free: 43.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007078/1.164, allocations: 9.457 MB / 0.6297 GB, free: 33.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003748/1.168, allocations: 175.9 kB / 0.6299 GB, free: 33.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004929/1.168, allocations: 172 kB / 0.63 GB, free: 33.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (446): * Single equations (assignments): 440 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003793/1.172, allocations: 2.148 MB / 0.6321 GB, free: 31.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000962/1.173, allocations: 437.2 kB / 0.6325 GB, free: 30.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00716/1.18, allocations: 4.8 MB / 0.6372 GB, free: 25.69 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/1.18, allocations: 31.94 kB / 0.6373 GB, free: 25.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.581e-05/1.18, allocations: 15.94 kB / 0.6373 GB, free: 25.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.464e-05/1.18, allocations: 15.94 kB / 0.6373 GB, free: 25.63 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01831/1.199, allocations: 11 MB / 0.648 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/1.199, allocations: 8.031 kB / 0.6481 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001917/1.201, allocations: 443.4 kB / 0.6485 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002428/1.203, allocations: 1.036 MB / 0.6495 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003085/1.204, allocations: 79.97 kB / 0.6496 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/1.221, allocations: 18.97 MB / 0.6681 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.221, allocations: 7.938 kB / 0.6681 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/1.234, allocations: 6.879 MB / 0.6748 GB, free: 1.859 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002908/1.237, allocations: 0.8457 MB / 0.6756 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/1.238, allocations: 64 kB / 0.6757 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002834/1.241, allocations: 143.9 kB / 0.6758 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008169/1.242, allocations: 221.9 kB / 0.676 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002876/1.242, allocations: 87.97 kB / 0.6761 GB, free: 496 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005528/1.248, allocations: 2.577 MB / 0.6786 GB, free: 13.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.01e-07/1.248, allocations: 4 kB / 0.6787 GB, free: 13.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006536/1.254, allocations: 1.246 MB / 0.6799 GB, free: 12.65 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,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.0137/1.268, allocations: 7.554 MB / 0.6872 GB, free: 4.875 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008312/1.277, allocations: 4.542 MB / 0.6917 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/1.277, allocations: 0 / 0.6917 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005171/1.282, allocations: 3.075 MB / 0.6947 GB, free: 13.04 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006684/1.288, allocations: 1.191 MB / 0.6958 GB, free: 11.88 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3569/1.645, allocations: 43.3 MB / 0.7381 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00745/1.653, allocations: 4.403 MB / 0.7424 GB, free: 181 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003651/1.657, allocations: 0.9065 MB / 0.7433 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004328/1.661, allocations: 2.777 MB / 0.746 GB, free: 180 MB / 0.5294 GB Notification: Performance of SimCode: time 1.533e-06/1.661, allocations: 0 / 0.746 GB, free: 180 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1547/1.816, allocations: 111 MB / 0.8544 GB, free: 82.55 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.16/19.98, allocations: 9.922 kB / 0.8544 GB, free: 82.55 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches