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.001138/0.001138, allocations: 112.5 kB / 17.06 MB, free: 5.945 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.001132/0.001132, allocations: 200.1 kB / 18.01 MB, free: 5.023 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.28/1.28, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 43.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2359, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01083/0.2468, allocations: 10.19 MB / 410.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005577/0.2524, allocations: 3.22 MB / 413.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000936/0.2533, allocations: 55.75 kB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.2549, allocations: 0.7298 MB / 414.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.257, allocations: 0.8738 MB / 415.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007743/0.2577, allocations: 411.4 kB / 415.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002819/0.2606, allocations: 2.972 MB / 418.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002492/0.2631, allocations: 2.473 MB / 421.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.2647, allocations: 1.359 MB / 422.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.2666, allocations: 1.693 MB / 424.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004538/0.2671, allocations: 359.9 kB / 424.6 MB, free: 348 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007774/0.2679, allocations: 447.9 kB / 425 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008916/0.2688, allocations: 1.013 MB / 426 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.2703, allocations: 1.61 MB / 427.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00433/0.2746, allocations: 4.686 MB / 432.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2747, allocations: 0 / 432.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2747, allocations: 0 / 432.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.196e-05/0.2748, allocations: 0 / 432.3 MB, free: 8.566 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.006086/0.2809, allocations: 3.343 MB / 435.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.2809, allocations: 12.03 kB / 435.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000399/0.2813, allocations: 341.6 kB / 436 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007475/0.2821, allocations: 346.9 kB / 436.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003027/0.2851, allocations: 1.761 MB / 438.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.2853, allocations: 176.6 kB / 438.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.2856, allocations: 232 kB / 438.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004935/0.2906, allocations: 3.133 MB / 441.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.134e-05/0.2906, allocations: 15.94 kB / 441.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002118/0.2909, allocations: 92 kB / 441.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.291, allocations: 104.6 kB / 441.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004447/0.2954, allocations: 2.7 MB / 444.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.3103, allocations: 9.66 MB / 454.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002621/0.3129, allocations: 2.166 MB / 456.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.3148, allocations: 1.112 MB / 457.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002715/0.3151, allocations: 208.1 kB / 457.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.3151, allocations: 51.48 kB / 457.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.926e-06/0.3151, allocations: 7.938 kB / 457.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01391/0.329, allocations: 6.874 MB / 464.6 MB, free: 7.359 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.3291, allocations: 68.72 kB / 464.7 MB, free: 7.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.3315, allocations: 1.75 MB / 466.4 MB, free: 5.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.3316, allocations: 45.7 kB / 466.5 MB, free: 5.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008025/0.3324, allocations: 1.182 MB / 467.7 MB, free: 4.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.3328, allocations: 476 kB / 468.1 MB, free: 3.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000417/0.3332, allocations: 283.5 kB / 468.4 MB, free: 3.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.974e-05/0.3333, allocations: 309.1 kB / 468.7 MB, free: 3.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.3345, allocations: 0.7925 MB / 469.5 MB, free: 2.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.336, allocations: 1.205 MB / 470.7 MB, free: 1.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/0.3387, allocations: 2.09 MB / 472.8 MB, free: 14.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.944e-06/0.3388, allocations: 4 kB / 472.8 MB, free: 14.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004321/0.3431, allocations: 2.683 MB / 475.5 MB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.3431, allocations: 8 kB / 475.5 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.3432, allocations: 16 kB / 475.5 MB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009809/0.3441, allocations: 419.4 kB / 475.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.3455, allocations: 359.4 kB / 476.3 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006746/0.3523, allocations: 7.088 MB / 483.4 MB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.3538, allocations: 107.9 kB / 483.5 MB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3539, allocations: 60 kB / 483.5 MB, free: 3.602 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.001268/0.3552, allocations: 0.7979 MB / 484.3 MB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003656/0.3556, allocations: 190.8 kB / 484.5 MB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00392/0.3595, allocations: 2.375 MB / 486.9 MB, free: 192 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.3595, allocations: 16 kB / 486.9 MB, free: 176 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.3596, allocations: 7.984 kB / 486.9 MB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.3596, allocations: 3.984 kB / 486.9 MB, free: 164 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008542/0.3681, allocations: 5.112 MB / 492 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.3682, allocations: 4 kB / 492 MB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.3692, allocations: 240 kB / 492.3 MB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.3703, allocations: 453.5 kB / 492.7 MB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.644e-05/0.3704, allocations: 35.98 kB / 492.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008284/0.3787, allocations: 8.648 MB / 0.4896 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.3787, allocations: 4 kB / 0.4896 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0057/0.3844, allocations: 3.526 MB / 0.4931 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009668/0.3854, allocations: 439.8 kB / 0.4935 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.3857, allocations: 32 kB / 0.4935 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.3867, allocations: 95.83 kB / 0.4936 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002535/0.387, allocations: 116.7 kB / 0.4937 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.917e-05/0.3871, allocations: 43.98 kB / 0.4938 GB, free: 12.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001642/0.3887, allocations: 1.194 MB / 0.4949 GB, free: 11.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3887, allocations: 0 / 0.4949 GB, free: 11.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001597/0.3903, allocations: 0.5038 MB / 0.4954 GB, free: 10.93 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.005518/0.3959, allocations: 4.178 MB / 0.4995 GB, free: 6.648 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004084/0.4, allocations: 2.464 MB / 0.5019 GB, free: 4.121 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4, allocations: 0 / 0.5019 GB, free: 4.121 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.4028, allocations: 1.63 MB / 0.5035 GB, free: 2.438 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/0.405, allocations: 469 kB / 0.504 GB, free: 1.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02801/0.433, allocations: 19.49 MB / 0.523 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00169/0.4348, allocations: 2.001 MB / 0.5249 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001192/0.436, allocations: 443.5 kB / 0.5254 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/0.4371, allocations: 0.9171 MB / 0.5263 GB, free: 10.39 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4371, allocations: 0 / 0.5263 GB, free: 10.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2542/0.6913, allocations: 47.81 MB / 0.573 GB, free: 106.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.35/26.04, allocations: 7.609 kB / 0.573 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