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.001689/0.001689, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001932/0.001932, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.94 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08542, allocations: 50.52 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01283/0.09828, allocations: 11.51 MB / 369.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1477/0.246, allocations: 3.936 MB / 373 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.2477, allocations: 63.09 kB / 373.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.2501, allocations: 0.8372 MB / 373.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002995/0.2531, allocations: 0.9444 MB / 374.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.2545, allocations: 0.5164 MB / 375.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003412/0.2579, allocations: 3.209 MB / 378.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00294/0.2608, allocations: 2.582 MB / 381.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.2627, allocations: 1.434 MB / 382.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.2649, allocations: 1.823 MB / 384.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005902/0.2655, allocations: 387 kB / 384.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001248/0.2668, allocations: 0.6005 MB / 385.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009249/0.2677, allocations: 1.075 MB / 386.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001575/0.2693, allocations: 1.727 MB / 388.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003588/0.2729, allocations: 5.005 MB / 393.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2729, allocations: 0 / 393.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2729, allocations: 0 / 393.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.491e-05/0.273, allocations: 0 / 393.2 MB, free: 2.312 MB / 302.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.006026/0.279, allocations: 3.503 MB / 396.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.279, allocations: 8.812 kB / 396.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004644/0.2795, allocations: 365.8 kB / 397.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001604/0.2811, allocations: 438.8 kB / 397.5 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.2839, allocations: 1.811 MB / 399.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.284, allocations: 198.7 kB / 399.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003203/0.2844, allocations: 249.7 kB / 399.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005002/0.2894, allocations: 3.254 MB / 403 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.202e-05/0.2894, allocations: 0 / 403 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/0.2897, allocations: 107 kB / 403.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.2898, allocations: 116.9 kB / 403.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004537/0.2944, allocations: 2.701 MB / 405.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01517/0.3096, allocations: 10.37 MB / 416.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002245/0.3118, allocations: 1.774 MB / 418.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/0.3136, allocations: 1.059 MB / 419.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002752/0.3139, allocations: 202 kB / 419.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.3139, allocations: 43.56 kB / 419.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=115): time 2.976e-06/0.3139, allocations: 0 / 419.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=134): time 0.01756/0.3315, allocations: 7.422 MB / 426.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.3316, allocations: 64.72 kB / 426.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002972/0.3346, allocations: 1.893 MB / 428.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.639e-05/0.3347, allocations: 45.7 kB / 428.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008913/0.3356, allocations: 1.246 MB / 430.1 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003782/0.3359, allocations: 471.7 kB / 430.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004931/0.3365, allocations: 294.1 kB / 430.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3366, allocations: 309.1 kB / 431.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.338, allocations: 0.812 MB / 431.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/0.3397, allocations: 1.31 MB / 433.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/0.343, allocations: 2.257 MB / 435.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.343, allocations: 4 kB / 435.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004722/0.3477, allocations: 2.795 MB / 438.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.3478, allocations: 14.81 kB / 438.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/0.3478, allocations: 16 kB / 438.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.3488, allocations: 425 kB / 438.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.3504, allocations: 403.3 kB / 439.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00626/0.3566, allocations: 5.796 MB / 444.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.3584, allocations: 127.8 kB / 445 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/0.3586, allocations: 71.98 kB / 445.1 MB, free: 304 kB / 350.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.001441/0.3601, allocations: 0.7899 MB / 445.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005409/0.3606, allocations: 197.6 kB / 446.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004425/0.365, allocations: 2.398 MB / 448.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.265e-05/0.3651, allocations: 16 kB / 448.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.3651, allocations: 4 kB / 448.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.3651, allocations: 11.91 kB / 448.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009744/0.3749, allocations: 5.288 MB / 453.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.3749, allocations: 4.094 kB / 453.8 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.376, allocations: 247.6 kB / 454.1 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001187/0.3772, allocations: 471.6 kB / 454.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.3773, allocations: 35.98 kB / 454.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007279/0.3846, allocations: 7.344 MB / 461.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.307e-05/0.3846, allocations: 7.938 kB / 461.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005686/0.3903, allocations: 3.579 MB / 465.5 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/0.3913, allocations: 450.6 kB / 465.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004509/0.3918, allocations: 28.12 kB / 466 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.3931, allocations: 103.9 kB / 466.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.3934, allocations: 108.7 kB / 466.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.937e-05/0.3935, allocations: 47.98 kB / 466.2 MB, free: 10.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.3956, allocations: 1.295 MB / 467.5 MB, free: 9.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3956, allocations: 0 / 467.5 MB, free: 9.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002009/0.3976, allocations: 0.5457 MB / 468 MB, free: 8.672 MB / 382.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.006244/0.4039, allocations: 4.244 MB / 472.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005387/0.4093, allocations: 2.975 MB / 475.3 MB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.4093, allocations: 8.188 kB / 475.3 MB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00248/0.4118, allocations: 1.509 MB / 476.8 MB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.4141, allocations: 459.2 kB / 477.2 MB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03229/0.4464, allocations: 22.8 MB / 0.4883 GB, free: 6.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/0.4482, allocations: 2.018 MB / 0.4903 GB, free: 4.586 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001399/0.4496, allocations: 431.7 kB / 0.4907 GB, free: 4.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/0.4509, allocations: 0.9952 MB / 0.4917 GB, free: 3.164 MB / 414.1 MB Notification: Performance of SimCode: time 5.72e-07/0.451, allocations: 0 / 0.4917 GB, free: 3.164 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2246/0.6756, allocations: 47.97 MB / 0.5385 GB, free: 151.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.876/10.55, allocations: 4.859 kB / 0.5385 GB, free: 151.8 MB / 446.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