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.001603/0.001603, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001496/0.001496, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 63.84 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2328, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01265/0.2455, allocations: 10.22 MB / 419 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.2519, allocations: 3.313 MB / 422.3 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.2533, allocations: 59.75 kB / 422.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.2553, allocations: 0.7025 MB / 423.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.2579, allocations: 0.8386 MB / 423.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.259, allocations: 423.4 kB / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003691/0.2627, allocations: 2.988 MB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003046/0.2657, allocations: 2.473 MB / 429.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002044/0.2678, allocations: 1.359 MB / 431.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002508/0.2703, allocations: 1.701 MB / 432.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000626/0.271, allocations: 356 kB / 433.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009661/0.2719, allocations: 467.8 kB / 433.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.273, allocations: 1.017 MB / 434.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002023/0.2751, allocations: 1.618 MB / 436.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005323/0.2804, allocations: 4.706 MB / 441 MB, free: 1.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2804, allocations: 3.938 kB / 441 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2804, allocations: 3.938 kB / 441 MB, free: 1.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.134e-05/0.2805, allocations: 0 / 441 MB, free: 1.109 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.006935/0.2875, allocations: 3.352 MB / 444.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2875, allocations: 8.031 kB / 444.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004747/0.288, allocations: 337.6 kB / 444.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.2892, allocations: 382.8 kB / 445.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003305/0.2925, allocations: 1.788 MB / 446.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.2927, allocations: 180.6 kB / 447 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004144/0.2931, allocations: 228 kB / 447.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005511/0.2987, allocations: 3.137 MB / 450.4 MB, free: 7.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.044e-05/0.2987, allocations: 3.953 kB / 450.4 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/0.299, allocations: 96 kB / 450.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.2991, allocations: 112.5 kB / 450.6 MB, free: 7.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004901/0.304, allocations: 2.696 MB / 453.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.3204, allocations: 9.653 MB / 462.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/0.3235, allocations: 2.177 MB / 465.1 MB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00206/0.3255, allocations: 1.105 MB / 466.2 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003349/0.3259, allocations: 211.2 kB / 466.4 MB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.326, allocations: 47.5 kB / 466.5 MB, free: 6.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.697e-06/0.326, allocations: 0 / 466.5 MB, free: 6.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01538/0.3414, allocations: 6.881 MB / 473.4 MB, free: 15.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.3415, allocations: 72.66 kB / 473.4 MB, free: 15.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/0.3446, allocations: 1.759 MB / 475.2 MB, free: 13.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000189/0.3448, allocations: 45.7 kB / 475.2 MB, free: 13.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.3458, allocations: 1.19 MB / 476.4 MB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004942/0.3463, allocations: 479.9 kB / 476.9 MB, free: 12.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005466/0.3469, allocations: 287.5 kB / 477.2 MB, free: 11.97 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.347, allocations: 305.1 kB / 477.5 MB, free: 11.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.3485, allocations: 0.7925 MB / 478.3 MB, free: 10.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.3502, allocations: 1.205 MB / 479.5 MB, free: 9.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003293/0.3535, allocations: 2.098 MB / 481.6 MB, free: 7.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.3536, allocations: 4 kB / 481.6 MB, free: 7.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005081/0.3587, allocations: 2.675 MB / 484.2 MB, free: 4.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.3587, allocations: 12 kB / 484.3 MB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.3587, allocations: 12.34 kB / 484.3 MB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.3598, allocations: 427.1 kB / 484.7 MB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/0.3613, allocations: 359.5 kB / 485 MB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007951/0.3692, allocations: 7.076 MB / 492.1 MB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.3708, allocations: 107.8 kB / 492.2 MB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002275/0.371, allocations: 64 kB / 492.3 MB, free: 12.05 MB / 414.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.001535/0.3726, allocations: 0.7939 MB / 493.1 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005246/0.3731, allocations: 194.7 kB / 493.3 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004562/0.3777, allocations: 2.387 MB / 495.6 MB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/0.3777, allocations: 16 kB / 495.7 MB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.3777, allocations: 4 kB / 495.7 MB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.3778, allocations: 8.078 kB / 495.7 MB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009816/0.3876, allocations: 5.101 MB / 0.489 GB, free: 3.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.3876, allocations: 7.984 kB / 0.489 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.389, allocations: 231.7 kB / 0.4893 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.3903, allocations: 455.5 kB / 0.4897 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.3904, allocations: 43.97 kB / 0.4897 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009325/0.3998, allocations: 8.637 MB / 0.4982 GB, free: 9.422 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.3998, allocations: 7.938 kB / 0.4982 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006214/0.406, allocations: 3.526 MB / 0.5016 GB, free: 5.801 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.4072, allocations: 443.8 kB / 0.5021 GB, free: 5.348 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004336/0.4076, allocations: 36.08 kB / 0.5021 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.4087, allocations: 79.91 kB / 0.5022 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.4091, allocations: 128.6 kB / 0.5023 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.4092, allocations: 39.98 kB / 0.5023 GB, free: 5.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002292/0.4115, allocations: 1.21 MB / 0.5035 GB, free: 3.867 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4115, allocations: 0 / 0.5035 GB, free: 3.867 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001965/0.4135, allocations: 0.4999 MB / 0.504 GB, free: 3.367 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.006628/0.4201, allocations: 4.182 MB / 0.5081 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004437/0.4246, allocations: 2.469 MB / 0.5105 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4246, allocations: 320 / 0.5105 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002843/0.4275, allocations: 1.606 MB / 0.5121 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/0.4302, allocations: 487.9 kB / 0.5125 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03482/0.465, allocations: 19.55 MB / 0.5316 GB, free: 6.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002429/0.4675, allocations: 2.005 MB / 0.5336 GB, free: 4.129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.469, allocations: 443.5 kB / 0.534 GB, free: 3.691 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/0.4705, allocations: 0.9288 MB / 0.5349 GB, free: 2.762 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4705, allocations: 3.938 kB / 0.5349 GB, free: 2.758 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2669/0.7374, allocations: 48.04 MB / 0.5818 GB, free: 92.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.44/27.18, allocations: 19.64 kB / 0.5818 GB, free: 92.21 MB / 462.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.1.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