Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.001283/0.001283, allocations: 192 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 43.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3018, allocations: 49.45 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01338/0.3153, allocations: 11.48 MB / 411.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007327/0.3226, allocations: 3.846 MB / 415.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.3241, allocations: 63.69 kB / 415.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.326, allocations: 0.8608 MB / 416.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002242/0.3283, allocations: 0.9901 MB / 417.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3293, allocations: 0.5032 MB / 418 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003336/0.3327, allocations: 3.211 MB / 421.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002652/0.3353, allocations: 2.582 MB / 423.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.3377, allocations: 1.441 MB / 425.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002509/0.3402, allocations: 1.81 MB / 427 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005106/0.3407, allocations: 388 kB / 427.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.3418, allocations: 0.6245 MB / 428 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009957/0.3428, allocations: 1.064 MB / 429.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001733/0.3445, allocations: 1.727 MB / 430.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004919/0.3495, allocations: 5.056 MB / 435.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3495, allocations: 0 / 435.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.3495, allocations: 4 kB / 435.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.838e-05/0.3496, allocations: 4 kB / 435.9 MB, free: 4.957 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.006959/0.3565, allocations: 3.555 MB / 439.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.3566, allocations: 11.97 kB / 439.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004554/0.3571, allocations: 362.9 kB / 439.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001328/0.3584, allocations: 426.7 kB / 440.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003179/0.3616, allocations: 1.84 MB / 442.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.3618, allocations: 197 kB / 442.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003568/0.3621, allocations: 251.9 kB / 442.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005164/0.3673, allocations: 3.243 MB / 445.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-05/0.3674, allocations: 11.94 kB / 445.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002345/0.3676, allocations: 112 kB / 445.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001457/0.3678, allocations: 108.9 kB / 446 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004413/0.3722, allocations: 2.697 MB / 448.7 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/0.3884, allocations: 10.29 MB / 459 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.3906, allocations: 1.78 MB / 460.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.3923, allocations: 1.049 MB / 461.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00029/0.3926, allocations: 207.2 kB / 462 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.3926, allocations: 43.56 kB / 462 MB, free: 10.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.417e-06/0.3926, allocations: 0 / 462 MB, free: 10.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01714/0.4098, allocations: 7.467 MB / 469.5 MB, free: 2.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.4098, allocations: 72.72 kB / 469.6 MB, free: 2.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/0.4125, allocations: 1.873 MB / 471.5 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.561e-05/0.4126, allocations: 49.7 kB / 471.5 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008737/0.4135, allocations: 1.272 MB / 472.8 MB, free: 15.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003561/0.4138, allocations: 491.8 kB / 473.3 MB, free: 14.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004569/0.4143, allocations: 299.4 kB / 473.6 MB, free: 14.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.689e-05/0.4144, allocations: 305.1 kB / 473.8 MB, free: 14.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.4157, allocations: 0.8159 MB / 474.7 MB, free: 13.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.4174, allocations: 1.312 MB / 476 MB, free: 11.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003056/0.4205, allocations: 2.258 MB / 478.2 MB, free: 9.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.4205, allocations: 8 kB / 478.2 MB, free: 9.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004537/0.425, allocations: 2.803 MB / 481 MB, free: 6.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.4251, allocations: 12 kB / 481.1 MB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.4251, allocations: 12 kB / 481.1 MB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009797/0.4261, allocations: 426.4 kB / 481.5 MB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.4276, allocations: 403.3 kB / 481.9 MB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00586/0.4334, allocations: 5.799 MB / 487.7 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.4352, allocations: 119.9 kB / 487.8 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.4354, allocations: 75.98 kB / 487.9 MB, free: 15.35 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.001479/0.4369, allocations: 0.7824 MB / 488.7 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004453/0.4373, allocations: 206.7 kB / 488.9 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/0.4413, allocations: 2.391 MB / 491.2 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.404e-05/0.4413, allocations: 16 kB / 491.3 MB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.4413, allocations: 11.92 kB / 491.3 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4414, allocations: 3.984 kB / 491.3 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008794/0.4502, allocations: 5.269 MB / 496.5 MB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.4502, allocations: 4 kB / 496.5 MB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.4513, allocations: 255.6 kB / 496.8 MB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/0.4525, allocations: 454.2 kB / 497.2 MB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-05/0.4526, allocations: 35.98 kB / 497.3 MB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006851/0.4594, allocations: 7.343 MB / 0.4928 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.4595, allocations: 11.94 kB / 0.4928 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005553/0.465, allocations: 3.584 MB / 0.4963 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.4662, allocations: 463.8 kB / 0.4967 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.4664, allocations: 35.97 kB / 0.4968 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.4676, allocations: 103.9 kB / 0.4969 GB, free: 9.652 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/0.4678, allocations: 112.7 kB / 0.497 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.908e-05/0.4679, allocations: 43.98 kB / 0.497 GB, free: 9.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001864/0.4698, allocations: 1.294 MB / 0.4983 GB, free: 8.215 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4698, allocations: 0 / 0.4983 GB, free: 8.215 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001874/0.4717, allocations: 0.5469 MB / 0.4988 GB, free: 7.668 MB / 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.005844/0.4775, allocations: 4.243 MB / 0.503 GB, free: 3.312 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00415/0.4817, allocations: 2.431 MB / 0.5053 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.4817, allocations: 0 / 0.5053 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.4842, allocations: 1.515 MB / 0.5068 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.4865, allocations: 444.8 kB / 0.5072 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03012/0.5167, allocations: 20.47 MB / 0.5272 GB, free: 9.586 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001745/0.5184, allocations: 2.006 MB / 0.5292 GB, free: 7.547 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.5197, allocations: 435.6 kB / 0.5296 GB, free: 7.117 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.5209, allocations: 0.9952 MB / 0.5306 GB, free: 6.121 MB / 462.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5209, allocations: 0 / 0.5306 GB, free: 6.121 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2909/0.8118, allocations: 48.79 MB / 0.5782 GB, free: 101 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.39, allocations: 22 kB / 0.5783 GB, free: 101 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches