Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.001304/0.001304, allocations: 192 kB / 18 MB, free: 5.102 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 43.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2238, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01243/0.2363, allocations: 10.2 MB / 410.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006039/0.2423, allocations: 3.216 MB / 413.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.2435, allocations: 55.75 kB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.2453, allocations: 0.6908 MB / 414.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002337/0.2477, allocations: 0.8348 MB / 415.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009185/0.2486, allocations: 423.3 kB / 415.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003483/0.2521, allocations: 2.961 MB / 418.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.2551, allocations: 2.477 MB / 421.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.257, allocations: 1.351 MB / 422.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00244/0.2595, allocations: 1.689 MB / 424.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005671/0.2601, allocations: 352 kB / 424.5 MB, free: 444 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000944/0.261, allocations: 455.9 kB / 424.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001083/0.2621, allocations: 1.013 MB / 425.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001971/0.2641, allocations: 1.61 MB / 427.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005266/0.2694, allocations: 4.683 MB / 432.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2694, allocations: 0 / 432.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2694, allocations: 4 kB / 432.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.955e-05/0.2695, allocations: 0 / 432.2 MB, free: 8.652 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006858/0.2764, allocations: 3.34 MB / 435.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.2764, allocations: 11.97 kB / 435.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004774/0.2769, allocations: 341.6 kB / 435.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008059/0.2777, allocations: 346.9 kB / 436.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003058/0.2808, allocations: 1.761 MB / 438 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.281, allocations: 184.6 kB / 438.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003831/0.2814, allocations: 232 kB / 438.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005456/0.2868, allocations: 3.133 MB / 441.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-05/0.2869, allocations: 11.89 kB / 441.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002228/0.2872, allocations: 96 kB / 441.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.2873, allocations: 104.6 kB / 441.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004846/0.2921, allocations: 2.692 MB / 444.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01544/0.3076, allocations: 9.668 MB / 454.1 MB, free: 2.223 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003003/0.3106, allocations: 2.166 MB / 456.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002042/0.3127, allocations: 1.121 MB / 457.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003153/0.313, allocations: 207.1 kB / 457.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.3131, allocations: 47.56 kB / 457.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.045e-06/0.3131, allocations: 0 / 457.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01487/0.328, allocations: 6.875 MB / 464.5 MB, free: 7.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/0.3281, allocations: 68.72 kB / 464.6 MB, free: 7.363 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/0.3306, allocations: 1.743 MB / 466.3 MB, free: 5.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.3308, allocations: 49.7 kB / 466.4 MB, free: 5.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000961/0.3317, allocations: 1.186 MB / 467.6 MB, free: 4.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004215/0.3322, allocations: 472 kB / 468 MB, free: 3.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000495/0.3327, allocations: 291.5 kB / 468.3 MB, free: 3.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3328, allocations: 301.1 kB / 468.6 MB, free: 3.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.3342, allocations: 0.7925 MB / 469.4 MB, free: 2.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/0.3359, allocations: 1.201 MB / 470.6 MB, free: 1.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003176/0.3391, allocations: 2.102 MB / 472.7 MB, free: 14.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.3391, allocations: 4 kB / 472.7 MB, free: 14.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004746/0.3439, allocations: 2.672 MB / 475.4 MB, free: 12.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3439, allocations: 16.03 kB / 475.4 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.3439, allocations: 12 kB / 475.4 MB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.345, allocations: 429.4 kB / 475.8 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.3464, allocations: 359.4 kB / 476.2 MB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007608/0.354, allocations: 7.073 MB / 483.3 MB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.3554, allocations: 107.8 kB / 483.4 MB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/0.3555, allocations: 64 kB / 483.4 MB, free: 3.691 MB / 398.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.001365/0.3569, allocations: 0.79 MB / 484.2 MB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/0.3573, allocations: 198.8 kB / 484.4 MB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004318/0.3616, allocations: 2.383 MB / 486.8 MB, free: 276 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.3616, allocations: 16 kB / 486.8 MB, free: 260 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3617, allocations: 7.938 kB / 486.8 MB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.3617, allocations: 3.984 kB / 486.8 MB, free: 248 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009131/0.3708, allocations: 5.104 MB / 491.9 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/0.3709, allocations: 4 kB / 491.9 MB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.3719, allocations: 235.6 kB / 492.2 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.3732, allocations: 457.3 kB / 492.6 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.3733, allocations: 39.97 kB / 492.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009141/0.3824, allocations: 8.647 MB / 0.4895 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3825, allocations: 4 kB / 0.4895 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006079/0.3886, allocations: 3.526 MB / 0.493 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000972/0.3896, allocations: 443.8 kB / 0.4934 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003838/0.3899, allocations: 39.92 kB / 0.4935 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.391, allocations: 83.91 kB / 0.4935 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/0.3913, allocations: 112.8 kB / 0.4936 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.3914, allocations: 39.98 kB / 0.4937 GB, free: 12.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002049/0.3935, allocations: 1.198 MB / 0.4948 GB, free: 11.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3935, allocations: 7.938 kB / 0.4949 GB, free: 11.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00182/0.3953, allocations: 0.5077 MB / 0.4954 GB, free: 11.01 MB / 430.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.006478/0.4018, allocations: 4.166 MB / 0.4994 GB, free: 6.742 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004365/0.4062, allocations: 2.469 MB / 0.5018 GB, free: 4.211 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.4063, allocations: 4 kB / 0.5018 GB, free: 4.207 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002789/0.409, allocations: 1.618 MB / 0.5034 GB, free: 2.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.4115, allocations: 483.3 kB / 0.5039 GB, free: 2.066 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03295/0.4445, allocations: 19.48 MB / 0.5229 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002247/0.4468, allocations: 2.001 MB / 0.5248 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001364/0.4482, allocations: 443.5 kB / 0.5253 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/0.4496, allocations: 0.9211 MB / 0.5262 GB, free: 10.48 MB / 462.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4496, allocations: 0 / 0.5262 GB, free: 10.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2522/0.7018, allocations: 47.83 MB / 0.5729 GB, free: 106.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.94/26.64, allocations: 4.062 kB / 0.5729 GB, free: 106.4 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches