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.00172/0.00172, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 67.23 kB / 307.1 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1044, allocations: 50.54 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.2355/0.3399, allocations: 30.73 MB / 388.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.3577, allocations: 8.549 MB / 396.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008162/0.366, allocations: 200.1 kB / 397.1 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007228/0.3732, allocations: 1.964 MB / 399.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.3836, allocations: 2.656 MB / 401.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006122/0.3897, allocations: 1.815 MB / 403.5 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01353/0.4033, allocations: 10.25 MB / 413.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01318/0.4165, allocations: 9.614 MB / 423.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008287/0.4248, allocations: 4.77 MB / 428.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009255/0.4341, allocations: 5.823 MB / 434 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003666/0.4378, allocations: 1.367 MB / 435.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005638/0.4435, allocations: 1.734 MB / 437.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004013/0.4475, allocations: 3.027 MB / 440.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009259/0.4568, allocations: 5.683 MB / 445.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0206/0.4774, allocations: 17.5 MB / 463.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4775, allocations: 0 / 463.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4775, allocations: 0 / 463.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006043/0.4781, allocations: 0 / 463.3 MB, free: 2.336 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03354/0.5116, allocations: 11.05 MB / 474.3 MB, free: 7.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.5117, allocations: 8.031 kB / 474.4 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003751/0.5155, allocations: 1.173 MB / 475.5 MB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01253/0.528, allocations: 2.156 MB / 477.7 MB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.5411, allocations: 6.113 MB / 483.8 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006805/0.5419, allocations: 0.6388 MB / 484.4 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002595/0.5445, allocations: 0.8552 MB / 485.3 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0277/0.5722, allocations: 11.44 MB / 496.7 MB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000261/0.5725, allocations: 7.844 kB / 496.7 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001662/0.5742, allocations: 363.9 kB / 497.1 MB, free: 268 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003876/0.5746, allocations: 373.6 kB / 497.5 MB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02071/0.5953, allocations: 9.669 MB / 0.4952 GB, free: 6.211 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06367/0.659, allocations: 35.9 MB / 0.5303 GB, free: 1.387 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3258/0.9849, allocations: 18.09 MB / 0.548 GB, free: 117.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007815/0.9927, allocations: 4.093 MB / 0.552 GB, free: 116.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01796/1.011, allocations: 11.6 MB / 0.5633 GB, free: 109.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/1.011, allocations: 65.36 kB / 0.5633 GB, free: 109.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=310): time 5.009e-06/1.011, allocations: 1.375 kB / 0.5633 GB, free: 109.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=362): time 0.0316/1.042, allocations: 15.96 MB / 0.5789 GB, free: 102.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/1.042, allocations: 92.95 kB / 0.579 GB, free: 102.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005644/1.048, allocations: 4.501 MB / 0.5834 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005067/1.049, allocations: 80.89 kB / 0.5835 GB, free: 100.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001842/1.051, allocations: 3.911 MB / 0.5873 GB, free: 97.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/1.052, allocations: 1.23 MB / 0.5885 GB, free: 96.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/1.053, allocations: 0.7949 MB / 0.5893 GB, free: 96.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.433e-05/1.053, allocations: 305.1 kB / 0.5896 GB, free: 95.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/1.056, allocations: 1.956 MB / 0.5915 GB, free: 94.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003165/1.059, allocations: 3.42 MB / 0.5948 GB, free: 89.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006194/1.065, allocations: 5.726 MB / 0.6004 GB, free: 83.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.647e-05/1.065, allocations: 16 kB / 0.6004 GB, free: 83.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01078/1.076, allocations: 6.831 MB / 0.6071 GB, free: 76.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.106e-05/1.076, allocations: 28.78 kB / 0.6071 GB, free: 76.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.302e-05/1.076, allocations: 48 kB / 0.6072 GB, free: 76.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00209/1.078, allocations: 0.9177 MB / 0.6081 GB, free: 75.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003479/1.082, allocations: 1.041 MB / 0.6091 GB, free: 74.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/1.092, allocations: 12.49 MB / 0.6213 GB, free: 61.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/1.096, allocations: 243.7 kB / 0.6215 GB, free: 61.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004925/1.096, allocations: 208 kB / 0.6217 GB, free: 61.09 MB / 446.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.0039/1.1, allocations: 2.55 MB / 0.6242 GB, free: 58.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/1.101, allocations: 0.4902 MB / 0.6247 GB, free: 58.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008786/1.11, allocations: 5.733 MB / 0.6303 GB, free: 52.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.02e-05/1.11, allocations: 40.19 kB / 0.6303 GB, free: 52.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/1.11, allocations: 23.88 kB / 0.6303 GB, free: 52.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/1.11, allocations: 19.88 kB / 0.6304 GB, free: 52.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02173/1.132, allocations: 13.33 MB / 0.6434 GB, free: 38.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/1.132, allocations: 8.047 kB / 0.6434 GB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/1.134, allocations: 0.6007 MB / 0.644 GB, free: 38.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002335/1.137, allocations: 1.079 MB / 0.645 GB, free: 36.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003506/1.137, allocations: 83.97 kB / 0.6451 GB, free: 36.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/1.151, allocations: 16.59 MB / 0.6613 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.151, allocations: 11.94 kB / 0.6613 GB, free: 19.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/1.162, allocations: 8.356 MB / 0.6695 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002027/1.164, allocations: 0.983 MB / 0.6704 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008362/1.165, allocations: 76 kB / 0.6705 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0025/1.167, allocations: 183.8 kB / 0.6707 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000585/1.168, allocations: 274.3 kB / 0.671 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002126/1.168, allocations: 104 kB / 0.6711 GB, free: 9.398 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00406/1.172, allocations: 3.042 MB / 0.674 GB, free: 6.363 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.12e-07/1.172, allocations: 4 kB / 0.674 GB, free: 6.359 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006037/1.178, allocations: 1.497 MB / 0.6755 GB, free: 4.867 MB / 446.1 MB 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.01433/1.193, allocations: 9.097 MB / 0.6844 GB, free: 11.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02055/1.213, allocations: 8.323 MB / 0.6925 GB, free: 3.184 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.213, allocations: 4 kB / 0.6925 GB, free: 3.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006038/1.219, allocations: 3.47 MB / 0.6959 GB, free: 15.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005481/1.225, allocations: 1.17 MB / 0.697 GB, free: 14.49 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2674/1.492, allocations: 67.31 MB / 0.7628 GB, free: 118 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01103/1.503, allocations: 5.091 MB / 0.7677 GB, free: 116.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005402/1.509, allocations: 1.07 MB / 0.7688 GB, free: 116.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005436/1.514, allocations: 3.382 MB / 0.7721 GB, free: 112.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.533e-06/1.514, allocations: 0 / 0.7721 GB, free: 112.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4116/1.926, allocations: 127.8 MB / 0.8969 GB, free: 140.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/14.28, allocations: 15.56 kB / 0.8969 GB, free: 140.5 MB / 494.1 MB (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