Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_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.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_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.001667/0.001667, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 206 kB / 18.74 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.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 59.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3069, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.03051/0.3374, allocations: 30.74 MB / 439.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01835/0.3558, allocations: 8.547 MB / 448.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006795/0.3627, allocations: 199.4 kB / 448.3 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007197/0.3699, allocations: 2.007 MB / 450.3 MB, free: 7.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01127/0.3812, allocations: 2.764 MB / 453.1 MB, free: 5.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006614/0.3879, allocations: 1.808 MB / 454.9 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.4037, allocations: 10.31 MB / 465.2 MB, free: 8.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01724/0.4209, allocations: 9.607 MB / 474.8 MB, free: 15.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009815/0.4308, allocations: 4.817 MB / 479.6 MB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01053/0.4414, allocations: 5.842 MB / 485.4 MB, free: 4.527 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004527/0.4459, allocations: 1.371 MB / 486.8 MB, free: 3.156 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006605/0.4526, allocations: 1.714 MB / 488.5 MB, free: 1.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005331/0.4579, allocations: 3.031 MB / 491.6 MB, free: 14.4 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01181/0.4698, allocations: 5.687 MB / 497.2 MB, free: 8.691 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02579/0.4956, allocations: 17.68 MB / 0.5029 GB, free: 6.949 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4956, allocations: 0 / 0.5029 GB, free: 6.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4956, allocations: 0 / 0.5029 GB, free: 6.949 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006463/0.4963, allocations: 0 / 0.5029 GB, free: 6.949 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.04224/0.5385, allocations: 11.29 MB / 0.5139 GB, free: 11.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.5386, allocations: 8.031 kB / 0.5139 GB, free: 11.54 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003373/0.542, allocations: 1.173 MB / 0.515 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01301/0.555, allocations: 2.204 MB / 0.5172 GB, free: 8.141 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.5704, allocations: 6.292 MB / 0.5233 GB, free: 1.781 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006377/0.5711, allocations: 0.6424 MB / 0.524 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003569/0.5747, allocations: 0.8553 MB / 0.5248 GB, free: 288 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02498/0.5996, allocations: 11.43 MB / 0.536 GB, free: 4.762 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000172/0.5999, allocations: 11.95 kB / 0.536 GB, free: 4.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008761/0.6007, allocations: 356 kB / 0.5363 GB, free: 4.402 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003431/0.6011, allocations: 377.5 kB / 0.5367 GB, free: 4.031 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4587/1.06, allocations: 9.67 MB / 0.5461 GB, free: 111.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05875/1.119, allocations: 35.53 MB / 0.5808 GB, free: 85.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/1.131, allocations: 18.1 MB / 0.5985 GB, free: 65.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007059/1.138, allocations: 4.249 MB / 0.6026 GB, free: 61.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01704/1.155, allocations: 11.57 MB / 0.6139 GB, free: 49.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/1.155, allocations: 68.97 kB / 0.614 GB, free: 49.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=310): time 4.498e-06/1.155, allocations: 4 kB / 0.614 GB, free: 49.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=362): time 0.03061/1.186, allocations: 16.07 MB / 0.6297 GB, free: 33.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/1.186, allocations: 94.17 kB / 0.6298 GB, free: 33.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006052/1.192, allocations: 4.498 MB / 0.6342 GB, free: 29.03 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004951/1.193, allocations: 89.58 kB / 0.6343 GB, free: 28.94 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/1.195, allocations: 4.028 MB / 0.6382 GB, free: 25.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009824/1.196, allocations: 1.295 MB / 0.6395 GB, free: 23.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/1.197, allocations: 0.7923 MB / 0.6402 GB, free: 22.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.23e-05/1.197, allocations: 301.1 kB / 0.6405 GB, free: 22.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/1.199, allocations: 1.953 MB / 0.6424 GB, free: 20.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003182/1.202, allocations: 3.416 MB / 0.6458 GB, free: 16.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006113/1.209, allocations: 5.729 MB / 0.6514 GB, free: 10.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-05/1.209, allocations: 12 kB / 0.6514 GB, free: 10.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.009964/1.219, allocations: 6.85 MB / 0.6581 GB, free: 3.32 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/1.219, allocations: 33.34 kB / 0.6581 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.466e-05/1.219, allocations: 48 kB / 0.6581 GB, free: 3.242 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00209/1.221, allocations: 0.8971 MB / 0.659 GB, free: 2.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003464/1.224, allocations: 1.041 MB / 0.66 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/1.237, allocations: 12.47 MB / 0.6722 GB, free: 4.266 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004696/1.242, allocations: 243.7 kB / 0.6724 GB, free: 4.027 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006893/1.243, allocations: 204 kB / 0.6726 GB, free: 3.828 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 208 * 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 (529): * Single equations (assignments): 521 * Array equations: 2 * 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 {(2,13,100.0%), (1,8,100.0%), (2,13,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00546/1.248, allocations: 2.558 MB / 0.6751 GB, free: 1.262 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001452/1.25, allocations: 0.5085 MB / 0.6756 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/1.26, allocations: 5.74 MB / 0.6812 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.724e-05/1.26, allocations: 39.94 kB / 0.6813 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.26, allocations: 12 kB / 0.6813 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.392e-05/1.26, allocations: 23.91 kB / 0.6813 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/1.283, allocations: 13.31 MB / 0.6943 GB, free: 13.38 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/1.283, allocations: 4 kB / 0.6943 GB, free: 13.37 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002675/1.286, allocations: 0.6051 MB / 0.6949 GB, free: 12.77 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002875/1.289, allocations: 1.062 MB / 0.6959 GB, free: 11.69 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003927/1.289, allocations: 87.95 kB / 0.696 GB, free: 11.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01951/1.309, allocations: 16.56 MB / 0.7122 GB, free: 10.36 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/1.309, allocations: 4 kB / 0.7122 GB, free: 10.36 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/1.324, allocations: 8.405 MB / 0.7204 GB, free: 1.77 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003025/1.327, allocations: 1.009 MB / 0.7214 GB, free: 0.7383 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/1.328, allocations: 71.94 kB / 0.7215 GB, free: 0.668 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002822/1.331, allocations: 187.8 kB / 0.7216 GB, free: 496 kB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006627/1.332, allocations: 278.3 kB / 0.7219 GB, free: 216 kB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/1.332, allocations: 99.97 kB / 0.722 GB, free: 116 kB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004973/1.337, allocations: 3.049 MB / 0.725 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.337, allocations: 0 / 0.725 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00592/1.343, allocations: 1.477 MB / 0.7264 GB, free: 11.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * 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 (281): * Single equations (assignments): 274 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,13,100.0%), (2,13,100.0%), (4,33,93.8%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01404/1.357, allocations: 9.118 MB / 0.7353 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2571/1.614, allocations: 5.781 MB / 0.741 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/1.614, allocations: 2.969 kB / 0.741 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00517/1.62, allocations: 3.487 MB / 0.7444 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005776/1.625, allocations: 1.165 MB / 0.7455 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07827/1.704, allocations: 52.31 MB / 0.7966 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004585/1.708, allocations: 5.096 MB / 0.8016 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003601/1.712, allocations: 1.064 MB / 0.8026 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004233/1.716, allocations: 3.381 MB / 0.8059 GB, free: 131 MB / 0.5294 GB Notification: Performance of SimCode: time 1.223e-06/1.716, allocations: 4 kB / 0.8059 GB, free: 131 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2326/1.949, allocations: 125.3 MB / 0.9282 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.49/23.44, allocations: 10.47 kB / 0.9283 GB, free: 6.398 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_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/SMEE_Generator_Polyphase/SMEE_Generator_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches