Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.001317/0.001322, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001269/0.001269, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 55.91 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09667, allocations: 46.61 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.2105/0.3072, allocations: 16.59 MB / 391.3 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.319, allocations: 5.436 MB / 396.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00478/0.3239, allocations: 91.44 kB / 396.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004539/0.3284, allocations: 1.282 MB / 398.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00767/0.3361, allocations: 1.644 MB / 399.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.3397, allocations: 1.054 MB / 400.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009497/0.3492, allocations: 5.12 MB / 405.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006336/0.3556, allocations: 3.85 MB / 409.7 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004602/0.3602, allocations: 2.181 MB / 411.9 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005616/0.3659, allocations: 2.606 MB / 414.5 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001705/0.3676, allocations: 0.6134 MB / 415.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003418/0.371, allocations: 0.8313 MB / 416 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001906/0.373, allocations: 1.417 MB / 417.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005954/0.3789, allocations: 2.639 MB / 420 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01215/0.3911, allocations: 8.093 MB / 428.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.945e-05/0.3912, allocations: 0 / 428.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.511e-06/0.3912, allocations: 4 kB / 428.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002929/0.3915, allocations: 0 / 428.1 MB, free: 10.43 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01524/0.4068, allocations: 5.49 MB / 433.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4068, allocations: 12.03 kB / 433.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001172/0.408, allocations: 0.6066 MB / 434.2 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005457/0.4135, allocations: 1.009 MB / 435.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006506/0.42, allocations: 2.818 MB / 438 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.4203, allocations: 304 kB / 438.3 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008083/0.4211, allocations: 396 kB / 438.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/0.4314, allocations: 5.209 MB / 443.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.931e-05/0.4316, allocations: 11.95 kB / 444 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003844/0.4319, allocations: 167.9 kB / 444.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/0.4321, allocations: 172 kB / 444.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008593/0.4407, allocations: 4.447 MB / 448.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02947/0.4702, allocations: 16.65 MB / 465.4 MB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008487/0.4788, allocations: 8.411 MB / 473.8 MB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003198/0.482, allocations: 1.699 MB / 475.5 MB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009707/0.4917, allocations: 4.951 MB / 480.4 MB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.4918, allocations: 47.88 kB / 480.5 MB, free: 4.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=156): time 3.517e-06/0.4918, allocations: 0 / 480.5 MB, free: 4.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=159): time 0.01342/0.5052, allocations: 6.165 MB / 486.7 MB, free: 13.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.5053, allocations: 68.72 kB / 486.7 MB, free: 13.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004186/0.5095, allocations: 2.294 MB / 489 MB, free: 11.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.5097, allocations: 53.7 kB / 489.1 MB, free: 11.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001511/0.5113, allocations: 1.912 MB / 491 MB, free: 9.363 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005239/0.5118, allocations: 0.5733 MB / 491.5 MB, free: 8.785 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007673/0.5126, allocations: 395.9 kB / 491.9 MB, free: 8.391 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5127, allocations: 305.1 kB / 492.2 MB, free: 8.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.5142, allocations: 0.8397 MB / 493.1 MB, free: 7.246 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.5163, allocations: 1.56 MB / 494.6 MB, free: 5.355 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003819/0.5202, allocations: 2.559 MB / 497.2 MB, free: 2.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2e-05/0.5202, allocations: 11.94 kB / 497.2 MB, free: 2.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005505/0.5257, allocations: 2.885 MB / 0.4884 GB, free: 15.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.5258, allocations: 16.09 kB / 0.4884 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.685e-05/0.5258, allocations: 24 kB / 0.4884 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/0.5262, allocations: 121.7 kB / 0.4885 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/0.5283, allocations: 0.546 MB / 0.4891 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.5304, allocations: 1.997 MB / 0.491 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/0.5327, allocations: 108 kB / 0.4911 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/0.533, allocations: 104 kB / 0.4912 GB, free: 12.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002904/0.5359, allocations: 1.184 MB / 0.4924 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000943/0.5369, allocations: 262.3 kB / 0.4926 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00518/0.542, allocations: 2.429 MB / 0.495 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.5421, allocations: 15.98 kB / 0.495 GB, free: 8.539 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/0.5421, allocations: 12 kB / 0.495 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.5421, allocations: 15.84 kB / 0.495 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.554, allocations: 5.768 MB / 0.5007 GB, free: 2.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.5541, allocations: 0 / 0.5007 GB, free: 2.609 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.5555, allocations: 287.6 kB / 0.5009 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008989/0.5564, allocations: 321.6 kB / 0.5012 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.5566, allocations: 47.86 kB / 0.5013 GB, free: 1.961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007484/0.5641, allocations: 6.958 MB / 0.5081 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.5641, allocations: 4.031 kB / 0.5081 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00642/0.5705, allocations: 3.557 MB / 0.5116 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/0.5721, allocations: 0.5071 MB / 0.5121 GB, free: 6.402 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006646/0.5728, allocations: 36.19 kB / 0.5121 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.5743, allocations: 83.92 kB / 0.5122 GB, free: 6.285 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/0.5747, allocations: 117.1 kB / 0.5123 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.5748, allocations: 52.11 kB / 0.5123 GB, free: 6.117 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003062/0.5778, allocations: 1.552 MB / 0.5138 GB, free: 4.551 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5779, allocations: 0 / 0.5138 GB, free: 4.551 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002744/0.5806, allocations: 0.6717 MB / 0.5145 GB, free: 3.879 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00689/0.5875, allocations: 4.175 MB / 0.5186 GB, free: 15.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004219/0.5918, allocations: 2.277 MB / 0.5208 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5918, allocations: 0 / 0.5208 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.5943, allocations: 1.441 MB / 0.5222 GB, free: 11.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003744/0.5981, allocations: 0.5901 MB / 0.5228 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04801/0.6461, allocations: 24.21 MB / 0.5464 GB, free: 2.066 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2013/0.8475, allocations: 2.658 MB / 0.549 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002549/0.8501, allocations: 0.5546 MB / 0.5496 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00218/0.8523, allocations: 1.467 MB / 0.551 GB, free: 151.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.363e-06/0.8523, allocations: 3.094 kB / 0.551 GB, free: 151.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/0.9587, allocations: 59.45 MB / 0.6091 GB, free: 111.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.14/16.1, allocations: 4 kB / 0.6091 GB, free: 111.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches