Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.001627/0.001627, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001774/0.001774, allocations: 187 kB / 18.67 MB, free: 4.414 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.364/1.364, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001399/0.001399, allocations: 51.92 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.0869, allocations: 46.62 MB / 374.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2218/0.3087, allocations: 24.05 MB / 398.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01962/0.3284, allocations: 7.104 MB / 405.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006066/0.3346, allocations: 130.7 kB / 406 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0061/0.3407, allocations: 1.576 MB / 407.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009276/0.35, allocations: 2.274 MB / 409.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004809/0.3548, allocations: 1.467 MB / 411.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01148/0.3663, allocations: 7.199 MB / 418.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01074/0.3771, allocations: 5.472 MB / 424 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006947/0.3841, allocations: 3.182 MB / 427.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008148/0.3923, allocations: 3.822 MB / 431 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00345/0.3958, allocations: 0.875 MB / 431.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005007/0.4008, allocations: 1.304 MB / 433.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003328/0.4042, allocations: 2.127 MB / 435.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007807/0.412, allocations: 3.769 MB / 439 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01628/0.4284, allocations: 11.47 MB / 450.5 MB, free: 3.922 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.4284, allocations: 4 kB / 450.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4284, allocations: 0 / 450.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004937/0.4289, allocations: 0 / 450.5 MB, free: 3.918 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02243/0.4514, allocations: 7.42 MB / 457.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4514, allocations: 8.031 kB / 457.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002518/0.454, allocations: 0.7701 MB / 458.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007318/0.4613, allocations: 1.219 MB / 459.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009954/0.4713, allocations: 3.919 MB / 463.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004433/0.4718, allocations: 432 kB / 464.3 MB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/0.4737, allocations: 0.5622 MB / 464.8 MB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01903/0.4927, allocations: 7.28 MB / 472.1 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000287/0.493, allocations: 8 kB / 472.1 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001677/0.4947, allocations: 232 kB / 472.3 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003663/0.4951, allocations: 263.3 kB / 472.6 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01556/0.5107, allocations: 6.107 MB / 478.7 MB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05116/0.5619, allocations: 23.39 MB / 0.4903 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008818/0.5708, allocations: 8.737 MB / 0.4989 GB, free: 5.773 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00412/0.5749, allocations: 2.367 MB / 0.5012 GB, free: 3.398 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.5886, allocations: 6.918 MB / 0.5079 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.5887, allocations: 60.56 kB / 0.508 GB, free: 12.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 5.15e-06/0.5887, allocations: 0 / 0.508 GB, free: 12.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03519/0.6239, allocations: 13.73 MB / 0.5214 GB, free: 14.23 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.624, allocations: 89.53 kB / 0.5215 GB, free: 14.12 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00567/0.6297, allocations: 3.42 MB / 0.5248 GB, free: 10.72 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005116/0.6303, allocations: 73.7 kB / 0.5249 GB, free: 10.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001925/0.6322, allocations: 2.678 MB / 0.5275 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/0.6336, allocations: 0.9665 MB / 0.5284 GB, free: 6.953 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009878/0.6346, allocations: 0.6411 MB / 0.5291 GB, free: 6.305 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.608e-05/0.6347, allocations: 301.1 kB / 0.5294 GB, free: 6.008 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/0.6374, allocations: 1.549 MB / 0.5309 GB, free: 4.457 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00338/0.6408, allocations: 2.756 MB / 0.5336 GB, free: 1.168 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006291/0.6471, allocations: 4.602 MB / 0.5381 GB, free: 11.99 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.698e-05/0.6471, allocations: 12 kB / 0.5381 GB, free: 11.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01008/0.6572, allocations: 5.471 MB / 0.5434 GB, free: 6.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.051e-05/0.6573, allocations: 24.12 kB / 0.5434 GB, free: 6.383 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.71e-05/0.6574, allocations: 43.98 kB / 0.5435 GB, free: 6.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/0.659, allocations: 0.6652 MB / 0.5441 GB, free: 5.656 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003319/0.6623, allocations: 0.8619 MB / 0.545 GB, free: 4.793 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.198/0.8603, allocations: 10.34 MB / 0.5551 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/0.8638, allocations: 225.3 kB / 0.5553 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005103/0.8643, allocations: 168.8 kB / 0.5554 GB, free: 140.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * Array equations: 4 * 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 {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002967/0.8673, allocations: 1.622 MB / 0.557 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.8683, allocations: 387.5 kB / 0.5574 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009073/0.8774, allocations: 4.504 MB / 0.5618 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.611e-05/0.8775, allocations: 31.61 kB / 0.5618 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-05/0.8776, allocations: 7.594 kB / 0.5618 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.155e-05/0.8776, allocations: 14.02 kB / 0.5618 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02107/0.8987, allocations: 9.898 MB / 0.5715 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/0.8988, allocations: 8.734 kB / 0.5715 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/0.9011, allocations: 0.4996 MB / 0.572 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/0.903, allocations: 0.7342 MB / 0.5727 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003217/0.9034, allocations: 74.2 kB / 0.5728 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.9146, allocations: 14.11 MB / 0.5866 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.9146, allocations: 6.031 kB / 0.5866 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.925, allocations: 6.605 MB / 0.593 GB, free: 119.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002123/0.9272, allocations: 0.7702 MB / 0.5938 GB, free: 119.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009007/0.9281, allocations: 63.36 kB / 0.5938 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002451/0.9306, allocations: 166 kB / 0.594 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005308/0.9311, allocations: 211.1 kB / 0.5942 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002012/0.9313, allocations: 88.28 kB / 0.5943 GB, free: 118.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003909/0.9353, allocations: 2.302 MB / 0.5965 GB, free: 118.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.9353, allocations: 3.562 kB / 0.5965 GB, free: 118.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005313/0.9406, allocations: 1.097 MB / 0.5976 GB, free: 118 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01043/0.9511, allocations: 7.34 MB / 0.6048 GB, free: 112.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00696/0.9581, allocations: 4.692 MB / 0.6094 GB, free: 107.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.9581, allocations: 0 / 0.6094 GB, free: 107.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004067/0.9622, allocations: 2.818 MB / 0.6121 GB, free: 104.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/0.9667, allocations: 0.9097 MB / 0.613 GB, free: 103.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0593/1.026, allocations: 39.03 MB / 0.6511 GB, free: 63.02 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003611/1.03, allocations: 3.499 MB / 0.6545 GB, free: 59.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003212/1.033, allocations: 0.8601 MB / 0.6554 GB, free: 58.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003065/1.036, allocations: 2.229 MB / 0.6576 GB, free: 56.38 MB / 478.1 MB Notification: Performance of SimCode: time 2.815e-06/1.036, allocations: 0 / 0.6576 GB, free: 56.38 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3583/1.394, allocations: 93.81 MB / 0.7492 GB, free: 153.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.01/19.41, allocations: 4.469 kB / 0.7492 GB, free: 153.1 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_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_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches