Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001609/0.001609, allocations: 118.7 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002052/0.002052, allocations: 203.9 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2436, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01282/0.2565, allocations: 11.52 MB / 420.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008092/0.2646, allocations: 3.92 MB / 424.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001974/0.2666, allocations: 63.75 kB / 424.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.2691, allocations: 0.8648 MB / 425.1 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003288/0.2724, allocations: 0.994 MB / 426.1 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001519/0.2739, allocations: 0.5071 MB / 426.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003866/0.2778, allocations: 3.237 MB / 429.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002894/0.2807, allocations: 2.574 MB / 432.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002156/0.2829, allocations: 1.456 MB / 433.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.2857, allocations: 1.814 MB / 435.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008924/0.2866, allocations: 388 kB / 436.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.2881, allocations: 0.6051 MB / 436.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001068/0.2892, allocations: 1.071 MB / 437.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002461/0.2917, allocations: 1.727 MB / 439.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005946/0.2976, allocations: 5.072 MB / 444.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2977, allocations: 0 / 444.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2977, allocations: 4 kB / 444.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001485/0.2978, allocations: 0 / 444.6 MB, free: 13.52 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.009125/0.307, allocations: 3.578 MB / 448.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.502e-05/0.3071, allocations: 8.031 kB / 448.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004976/0.3076, allocations: 366.9 kB / 448.5 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.3092, allocations: 462.7 kB / 449 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.3127, allocations: 1.86 MB / 450.8 MB, free: 7.125 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.3128, allocations: 193 kB / 451 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004326/0.3133, allocations: 259.9 kB / 451.3 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005329/0.3186, allocations: 3.247 MB / 454.5 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.768e-05/0.3187, allocations: 11.94 kB / 454.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.319, allocations: 104 kB / 454.6 MB, free: 3.242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3191, allocations: 116.9 kB / 454.7 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00451/0.3236, allocations: 2.701 MB / 457.4 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.017/0.3406, allocations: 10.29 MB / 467.7 MB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002248/0.3429, allocations: 1.763 MB / 469.5 MB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.3447, allocations: 1.049 MB / 470.6 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002956/0.345, allocations: 207.2 kB / 470.8 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.345, allocations: 51.56 kB / 470.8 MB, free: 2.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.356e-06/0.345, allocations: 0 / 470.8 MB, free: 2.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01769/0.3627, allocations: 7.455 MB / 478.3 MB, free: 10.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.3628, allocations: 64.72 kB / 478.3 MB, free: 10.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/0.3657, allocations: 1.893 MB / 480.2 MB, free: 9.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.3659, allocations: 45.7 kB / 480.3 MB, free: 8.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008756/0.3668, allocations: 1.283 MB / 481.5 MB, free: 7.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005436/0.3674, allocations: 491.9 kB / 482 MB, free: 7.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/0.3678, allocations: 295.4 kB / 482.3 MB, free: 6.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.125e-05/0.3679, allocations: 309.1 kB / 482.6 MB, free: 6.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.3693, allocations: 0.8159 MB / 483.4 MB, free: 5.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.371, allocations: 1.308 MB / 484.7 MB, free: 4.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003152/0.3741, allocations: 2.254 MB / 487 MB, free: 1.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.3742, allocations: 7.938 kB / 487 MB, free: 1.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005087/0.3792, allocations: 2.808 MB / 489.8 MB, free: 14.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.3793, allocations: 8 kB / 489.8 MB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.3793, allocations: 16 kB / 489.8 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009846/0.3803, allocations: 426.2 kB / 490.2 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/0.3819, allocations: 399.3 kB / 490.6 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006013/0.3879, allocations: 5.788 MB / 496.4 MB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.3898, allocations: 139.8 kB / 496.6 MB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.39, allocations: 72 kB / 496.6 MB, free: 7.809 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001462/0.3915, allocations: 0.7939 MB / 497.4 MB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005173/0.392, allocations: 206.8 kB / 497.6 MB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004307/0.3963, allocations: 2.403 MB / 0.4883 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.508e-05/0.3964, allocations: 12 kB / 0.4883 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.3964, allocations: 11.92 kB / 0.4883 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.3964, allocations: 3.984 kB / 0.4883 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00971/0.4061, allocations: 5.269 MB / 0.4935 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.4062, allocations: 4 kB / 0.4935 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.4074, allocations: 252.2 kB / 0.4937 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/0.4087, allocations: 450.1 kB / 0.4942 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.4089, allocations: 39.98 kB / 0.4942 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007528/0.4164, allocations: 7.342 MB / 0.5014 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.4165, allocations: 15.91 kB / 0.5014 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006134/0.4226, allocations: 3.584 MB / 0.5049 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.4238, allocations: 459.7 kB / 0.5053 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003027/0.4241, allocations: 39.97 kB / 0.5054 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.4253, allocations: 91.89 kB / 0.5054 GB, free: 2.109 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.4256, allocations: 116.7 kB / 0.5056 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.263e-05/0.4257, allocations: 43.98 kB / 0.5056 GB, free: 1.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001896/0.4276, allocations: 1.303 MB / 0.5069 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4276, allocations: 0 / 0.5069 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001959/0.4295, allocations: 0.5469 MB / 0.5074 GB, free: 116 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.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 (115): * Single equations (assignments): 110 * Array equations: 2 * 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 {(3,12,100.0%), (1,6,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.006123/0.4357, allocations: 4.253 MB / 0.5116 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004369/0.4401, allocations: 2.427 MB / 0.5139 GB, free: 9.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.4401, allocations: 0.875 kB / 0.5139 GB, free: 9.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002771/0.4429, allocations: 1.513 MB / 0.5154 GB, free: 7.715 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.4454, allocations: 452.9 kB / 0.5158 GB, free: 7.277 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03246/0.4779, allocations: 20.54 MB / 0.5359 GB, free: 1.953 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2152/0.6931, allocations: 2.003 MB / 0.5379 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001826/0.695, allocations: 430.9 kB / 0.5383 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/0.6965, allocations: 0.9995 MB / 0.5392 GB, free: 125.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.402e-06/0.6965, allocations: 0 / 0.5392 GB, free: 125.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07631/0.7728, allocations: 48.96 MB / 0.5871 GB, free: 85.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/14.59, allocations: 7.359 kB / 0.5871 GB, free: 85.88 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.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_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches