Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 101.8 kB / 17.59 MB, free: 5.449 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.001491/0.001491, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.406/1.406, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009666/0.0009669, allocations: 44.27 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08699/0.08797, allocations: 49.45 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01114/0.09914, allocations: 9.618 MB / 360.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006024/0.1052, allocations: 3.096 MB / 363.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.107, allocations: 59.69 kB / 363.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.1091, allocations: 0.6673 MB / 364.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.1116, allocations: 0.7687 MB / 364.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.1127, allocations: 397.8 kB / 365.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003172/0.1159, allocations: 2.526 MB / 367.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003035/0.1189, allocations: 2.33 MB / 370.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1722/0.2911, allocations: 1.176 MB / 371.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003429/0.2946, allocations: 1.495 MB / 372.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009058/0.2955, allocations: 317.4 kB / 373.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.2969, allocations: 418.6 kB / 373.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009954/0.2979, allocations: 0.8993 MB / 374.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0021/0.3, allocations: 1.419 MB / 375.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005726/0.3058, allocations: 4.098 MB / 380 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.3058, allocations: 0.7031 kB / 380 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3058, allocations: 0 / 380 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.306, allocations: 0.8125 kB / 380 MB, free: 11.32 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008312/0.3143, allocations: 2.901 MB / 382.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3144, allocations: 8.781 kB / 382.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009282/0.3153, allocations: 288.9 kB / 383.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002688/0.318, allocations: 1.497 MB / 384.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.3182, allocations: 166 kB / 384.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003626/0.3186, allocations: 211.9 kB / 385.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004842/0.3234, allocations: 2.801 MB / 387.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.442e-05/0.3235, allocations: 6.281 kB / 387.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002079/0.3237, allocations: 85.53 kB / 387.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.3238, allocations: 106.8 kB / 388.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004024/0.3279, allocations: 2.346 MB / 390.4 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.3404, allocations: 8.6 MB / 399 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.3428, allocations: 1.702 MB / 400.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.3445, allocations: 0.9737 MB / 401.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002893/0.3448, allocations: 201.7 kB / 401.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.3449, allocations: 46.88 kB / 401.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.886e-06/0.3449, allocations: 0 / 401.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01389/0.3588, allocations: 6.22 MB / 408.1 MB, free: 8.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.3589, allocations: 72.33 kB / 408.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00215/0.361, allocations: 1.441 MB / 409.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.3611, allocations: 45.7 kB / 409.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007424/0.3619, allocations: 1.041 MB / 410.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003332/0.3622, allocations: 411.5 kB / 411.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004312/0.3627, allocations: 251.5 kB / 411.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3628, allocations: 357.9 kB / 411.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.364, allocations: 0.691 MB / 412.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.3654, allocations: 1.067 MB / 413.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0027/0.3682, allocations: 1.864 MB / 415.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.3682, allocations: 4 kB / 415.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004334/0.3725, allocations: 2.425 MB / 417.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.3726, allocations: 8 kB / 417.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.3726, allocations: 12 kB / 417.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.3736, allocations: 418 kB / 418.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.3749, allocations: 338.4 kB / 418.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007154/0.3821, allocations: 7.046 MB / 425.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.3837, allocations: 103.8 kB / 425.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.3839, allocations: 56 kB / 425.7 MB, free: 6.246 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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.001253/0.3851, allocations: 0.69 MB / 426.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.3854, allocations: 158.1 kB / 426.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003689/0.3891, allocations: 2.128 MB / 428.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.3892, allocations: 12 kB / 428.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3892, allocations: 4 kB / 428.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.3892, allocations: 3.984 kB / 428.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007592/0.3968, allocations: 4.588 MB / 433.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.3968, allocations: 4 kB / 433.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009174/0.3978, allocations: 210.4 kB / 433.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/0.3989, allocations: 456.3 kB / 434 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.614e-05/0.399, allocations: 35.98 kB / 434 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008009/0.407, allocations: 8.618 MB / 442.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.407, allocations: 5.781 kB / 442.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005089/0.4121, allocations: 3.098 MB / 445.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.4132, allocations: 387.1 kB / 446.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/0.4134, allocations: 31.98 kB / 446.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009098/0.4143, allocations: 83.91 kB / 446.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.4146, allocations: 100.3 kB / 446.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.871e-05/0.4147, allocations: 35.98 kB / 446.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001482/0.4162, allocations: 0.9868 MB / 447.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4162, allocations: 4 kB / 447.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001718/0.4179, allocations: 463.9 kB / 447.8 MB, free: 15.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * 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 (102): * Single equations (assignments): 98 * 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,6,100.0%), (1,1,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.0004063/0.4183, allocations: 192.5 kB / 448 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004727/0.4231, allocations: 2.699 MB / 450.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.4231, allocations: 0 / 450.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002295/0.4254, allocations: 1.444 MB / 452.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/0.4275, allocations: 425.2 kB / 452.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007466/0.435, allocations: 4.542 MB / 457.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/0.4365, allocations: 1.788 MB / 458.9 MB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005595/0.437, allocations: 127.4 kB / 459 MB, free: 4.203 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4371, allocations: 0 / 459 MB, free: 4.203 MB / 366.1 MB Notification: Performance of Templates: time 0.07312/0.5102, allocations: 68.93 MB / 0.5156 GB, free: 15.34 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches