Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001558/0.001558, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.00194, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 59.97 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1096, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01396/0.1236, allocations: 10.22 MB / 367.8 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006929/0.1306, allocations: 3.318 MB / 371.1 MB, free: 396 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.1321, allocations: 59.75 kB / 371.2 MB, free: 336 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1528/0.2849, allocations: 0.7023 MB / 371.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002842/0.2878, allocations: 0.835 MB / 372.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.289, allocations: 421 kB / 373.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003598/0.2926, allocations: 2.963 MB / 376.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003307/0.2959, allocations: 2.491 MB / 378.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002419/0.2983, allocations: 1.343 MB / 379.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003222/0.3016, allocations: 1.707 MB / 381.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001241/0.3028, allocations: 353 kB / 382 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.3048, allocations: 467.3 kB / 382.4 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001856/0.3067, allocations: 1.018 MB / 383.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003739/0.3104, allocations: 1.613 MB / 385.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006163/0.3166, allocations: 4.637 MB / 389.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3166, allocations: 0 / 389.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3166, allocations: 1.156 kB / 389.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001416/0.3168, allocations: 0 / 389.7 MB, free: 4.758 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007546/0.3243, allocations: 3.286 MB / 393 MB, free: 2.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3244, allocations: 9.625 kB / 393 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004611/0.3248, allocations: 335 kB / 393.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001207/0.3261, allocations: 369.4 kB / 393.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00303/0.3291, allocations: 1.715 MB / 395.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.3293, allocations: 183.7 kB / 395.6 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003748/0.3297, allocations: 238.3 kB / 395.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005063/0.3347, allocations: 3.142 MB / 399 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.235e-05/0.3348, allocations: 1.875 kB / 399 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.335, allocations: 96.48 kB / 399.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.3352, allocations: 110.6 kB / 399.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004711/0.3399, allocations: 2.699 MB / 401.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01547/0.3554, allocations: 9.719 MB / 411.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.3583, allocations: 2.168 MB / 413.8 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/0.3602, allocations: 1.118 MB / 414.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/0.3606, allocations: 203.2 kB / 415.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.3606, allocations: 47.56 kB / 415.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.407e-06/0.3606, allocations: 0 / 415.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=131): time 0.01534/0.376, allocations: 6.837 MB / 422 MB, free: 7.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.3761, allocations: 68.7 kB / 422 MB, free: 7.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003974/0.3801, allocations: 1.759 MB / 423.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003241/0.3804, allocations: 49.64 kB / 423.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/0.3814, allocations: 1.161 MB / 425 MB, free: 4.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005674/0.382, allocations: 460.7 kB / 425.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000605/0.3826, allocations: 279.3 kB / 425.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.718e-05/0.3827, allocations: 309.1 kB / 426 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.3842, allocations: 0.8002 MB / 426.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.3858, allocations: 1.197 MB / 428 MB, free: 1.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00307/0.3889, allocations: 2.099 MB / 430.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.389, allocations: 4 kB / 430.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004723/0.3937, allocations: 2.667 MB / 432.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3937, allocations: 12 kB / 432.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.481e-05/0.3938, allocations: 16 kB / 432.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.3948, allocations: 427.2 kB / 433.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.3962, allocations: 355.4 kB / 433.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007115/0.4033, allocations: 7.077 MB / 440.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.4048, allocations: 111.7 kB / 440.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.405, allocations: 67.92 kB / 440.8 MB, free: 4.219 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001429/0.4064, allocations: 0.7978 MB / 441.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004676/0.4069, allocations: 185.8 kB / 441.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004227/0.4111, allocations: 2.382 MB / 444.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.4112, allocations: 15.94 kB / 444.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.4112, allocations: 4 kB / 444.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4112, allocations: 7.969 kB / 444.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008894/0.4201, allocations: 5.129 MB / 449.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.4201, allocations: 4 kB / 449.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.4212, allocations: 240 kB / 449.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001192/0.4224, allocations: 442.9 kB / 450 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/0.4225, allocations: 35.98 kB / 450 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008309/0.4308, allocations: 8.662 MB / 458.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4309, allocations: 0 / 458.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005527/0.4364, allocations: 3.511 MB / 462.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.4375, allocations: 430.8 kB / 462.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004601/0.4379, allocations: 35.98 kB / 462.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.4391, allocations: 83.91 kB / 462.8 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.4394, allocations: 132.6 kB / 462.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.663e-05/0.4395, allocations: 32.12 kB / 462.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001932/0.4414, allocations: 1.212 MB / 464.1 MB, free: 12.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4414, allocations: 0 / 464.1 MB, free: 12.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001926/0.4434, allocations: 0.5078 MB / 464.6 MB, free: 11.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.005823/0.4492, allocations: 4.163 MB / 468.8 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005448/0.4547, allocations: 3.112 MB / 471.9 MB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4547, allocations: 0 / 471.9 MB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002516/0.4572, allocations: 1.611 MB / 473.5 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.4595, allocations: 478.8 kB / 474 MB, free: 2.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03095/0.4904, allocations: 21.54 MB / 495.5 MB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/0.4924, allocations: 2.005 MB / 497.5 MB, free: 8.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001359/0.4938, allocations: 439.5 kB / 498 MB, free: 8.418 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/0.495, allocations: 0.9365 MB / 498.9 MB, free: 7.48 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4951, allocations: 4 kB / 498.9 MB, free: 7.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.228/0.723, allocations: 47.09 MB / 0.5332 GB, free: 149.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.884/10.61, allocations: 6.734 kB / 0.5332 GB, free: 149.4 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches