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.001699/0.001699, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00188/0.00188, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 60.12 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3091, allocations: 50.55 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.03571/0.3449, allocations: 27.12 MB / 435.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0192/0.3641, allocations: 7.522 MB / 443.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006403/0.3706, allocations: 175.4 kB / 443.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006398/0.3771, allocations: 1.77 MB / 445.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01013/0.3873, allocations: 2.344 MB / 447.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00617/0.3935, allocations: 1.546 MB / 449.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.016/0.4095, allocations: 8.754 MB / 458 MB, free: 80 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01517/0.4247, allocations: 7.437 MB / 465.5 MB, free: 8.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009083/0.4339, allocations: 4.062 MB / 469.5 MB, free: 4.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009976/0.4439, allocations: 4.932 MB / 474.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003976/0.4479, allocations: 1.141 MB / 475.6 MB, free: 14.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005804/0.4537, allocations: 1.363 MB / 477 MB, free: 13.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005067/0.4589, allocations: 2.54 MB / 479.5 MB, free: 10.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01198/0.4709, allocations: 4.8 MB / 484.3 MB, free: 5.652 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02647/0.4974, allocations: 14.96 MB / 499.3 MB, free: 6.645 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.4975, allocations: 4 kB / 499.3 MB, free: 6.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4975, allocations: 4 kB / 499.3 MB, free: 6.637 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005651/0.4981, allocations: 0 / 499.3 MB, free: 6.637 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.03777/0.5358, allocations: 9.612 MB / 0.497 GB, free: 12.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.852e-05/0.5359, allocations: 12.03 kB / 0.497 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004601/0.5405, allocations: 0.9921 MB / 0.4979 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01179/0.5524, allocations: 1.791 MB / 0.4997 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01457/0.567, allocations: 5.169 MB / 0.5047 GB, free: 4.863 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007837/0.5678, allocations: 0.5264 MB / 0.5052 GB, free: 4.336 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002984/0.5708, allocations: 0.7186 MB / 0.5059 GB, free: 3.617 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02972/0.6006, allocations: 9.792 MB / 0.5155 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005051/0.6012, allocations: 7.953 kB / 0.5155 GB, free: 9.742 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00271/0.6039, allocations: 296 kB / 0.5158 GB, free: 9.453 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005158/0.6045, allocations: 358.6 kB / 0.5161 GB, free: 9.102 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0239/0.6284, allocations: 8.314 MB / 0.5243 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5425/1.171, allocations: 30.56 MB / 0.5541 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/1.184, allocations: 17.24 MB / 0.5709 GB, free: 86.21 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006388/1.191, allocations: 3.778 MB / 0.5746 GB, free: 85 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01568/1.206, allocations: 9.279 MB / 0.5837 GB, free: 78.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/1.206, allocations: 65.03 kB / 0.5838 GB, free: 78.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.12e-06/1.206, allocations: 0 / 0.5838 GB, free: 78.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.02441/1.231, allocations: 12.49 MB / 0.596 GB, free: 69.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/1.231, allocations: 81.69 kB / 0.596 GB, free: 69.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006078/1.237, allocations: 3.821 MB / 0.5998 GB, free: 65.38 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006255/1.238, allocations: 69.7 kB / 0.5998 GB, free: 65.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001727/1.239, allocations: 3.351 MB / 0.6031 GB, free: 62.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008545/1.24, allocations: 1.037 MB / 0.6041 GB, free: 61.37 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009443/1.241, allocations: 0.6494 MB / 0.6048 GB, free: 60.71 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.036e-05/1.241, allocations: 305.1 kB / 0.605 GB, free: 60.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/1.243, allocations: 1.53 MB / 0.6065 GB, free: 58.88 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002407/1.246, allocations: 2.685 MB / 0.6092 GB, free: 55.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004816/1.251, allocations: 4.506 MB / 0.6136 GB, free: 50.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.53e-05/1.251, allocations: 12 kB / 0.6136 GB, free: 50.65 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.008159/1.259, allocations: 5.371 MB / 0.6188 GB, free: 45.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/1.259, allocations: 20 kB / 0.6188 GB, free: 45.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.142e-05/1.259, allocations: 36.75 kB / 0.6189 GB, free: 45.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/1.26, allocations: 0.5748 MB / 0.6194 GB, free: 44.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/1.263, allocations: 0.8541 MB / 0.6203 GB, free: 43.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00681/1.27, allocations: 9.456 MB / 0.6295 GB, free: 33.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003761/1.274, allocations: 183.9 kB / 0.6297 GB, free: 33.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008075/1.275, allocations: 164 kB / 0.6298 GB, free: 33.34 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.006533/1.281, allocations: 2.148 MB / 0.6319 GB, free: 31.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001371/1.283, allocations: 433.2 kB / 0.6323 GB, free: 30.76 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00775/1.29, allocations: 4.8 MB / 0.637 GB, free: 25.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/1.291, allocations: 28 kB / 0.6371 GB, free: 25.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/1.291, allocations: 19.94 kB / 0.6371 GB, free: 25.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.285e-05/1.291, allocations: 19.92 kB / 0.6371 GB, free: 25.78 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01712/1.308, allocations: 11 MB / 0.6478 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/1.308, allocations: 4 kB / 0.6478 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/1.31, allocations: 443.8 kB / 0.6483 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00239/1.312, allocations: 1.044 MB / 0.6493 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003508/1.313, allocations: 79.97 kB / 0.6494 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02228/1.335, allocations: 18.97 MB / 0.6679 GB, free: 9.113 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.335, allocations: 4 kB / 0.6679 GB, free: 9.109 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/1.349, allocations: 6.875 MB / 0.6746 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002654/1.352, allocations: 0.8495 MB / 0.6754 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/1.353, allocations: 67.98 kB / 0.6755 GB, free: 1.082 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002432/1.355, allocations: 135.9 kB / 0.6756 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006498/1.356, allocations: 221.8 kB / 0.6758 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002131/1.356, allocations: 87.97 kB / 0.6759 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005216/1.362, allocations: 2.58 MB / 0.6784 GB, free: 14.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.362, allocations: 0 / 0.6784 GB, free: 14.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005968/1.368, allocations: 1.242 MB / 0.6797 GB, free: 12.81 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.01467/1.382, allocations: 7.551 MB / 0.687 GB, free: 5.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009431/1.392, allocations: 4.558 MB / 0.6915 GB, free: 376 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.392, allocations: 0 / 0.6915 GB, free: 376 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005689/1.398, allocations: 3.07 MB / 0.6945 GB, free: 13.2 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006611/1.404, allocations: 1.195 MB / 0.6956 GB, free: 12.03 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3246/1.729, allocations: 43.3 MB / 0.7379 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006873/1.736, allocations: 4.403 MB / 0.7422 GB, free: 181 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00301/1.739, allocations: 0.9056 MB / 0.7431 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003077/1.742, allocations: 2.772 MB / 0.7458 GB, free: 180 MB / 0.5294 GB Notification: Performance of SimCode: time 1.432e-06/1.742, allocations: 3.969 kB / 0.7458 GB, free: 180 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2483/1.99, allocations: 111 MB / 0.8542 GB, free: 82.78 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.55/21.54, allocations: 9.922 kB / 0.8542 GB, free: 82.77 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.1.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