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.001707/0.001707, allocations: 110.2 kB / 17.17 MB, free: 6.344 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.001809/0.001809, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.286/2.286, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 47.05 kB / 300.6 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1763, allocations: 49.45 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.02095/0.1973, allocations: 9.559 MB / 359.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01186/0.2092, allocations: 3.065 MB / 362.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003554/0.2129, allocations: 55.75 kB / 362.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004356/0.2174, allocations: 0.5825 MB / 363.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006894/0.2244, allocations: 0.6993 MB / 364 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002822/0.2272, allocations: 351.6 kB / 364.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007242/0.2345, allocations: 2.857 MB / 367.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005828/0.2404, allocations: 1.969 MB / 369.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003804/0.2443, allocations: 1.031 MB / 370.2 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3352/0.5795, allocations: 1.436 MB / 371.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001944/0.5815, allocations: 196.8 kB / 371.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.5846, allocations: 303.6 kB / 372.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003178/0.5878, allocations: 0.7728 MB / 372.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006254/0.5941, allocations: 1.29 MB / 374.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009349/0.6036, allocations: 3.416 MB / 377.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.248e-05/0.6036, allocations: 1.719 kB / 377.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.6037, allocations: 5.125 kB / 377.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.6039, allocations: 0 / 377.6 MB, free: 11.87 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.01726/0.6212, allocations: 2.909 MB / 380.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.6213, allocations: 8.156 kB / 380.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002731/0.624, allocations: 287.6 kB / 380.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006748/0.6308, allocations: 1.49 MB / 382.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004856/0.6314, allocations: 174.2 kB / 382.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001681/0.6331, allocations: 209.6 kB / 382.7 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/0.6469, allocations: 2.798 MB / 385.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002337/0.6472, allocations: 11.12 kB / 385.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00112/0.6484, allocations: 81.72 kB / 385.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003006/0.6487, allocations: 112.6 kB / 385.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.6589, allocations: 2.342 MB / 388 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03075/0.6897, allocations: 8.611 MB / 396.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004124/0.6939, allocations: 1.689 MB / 398.3 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003088/0.697, allocations: 0.9757 MB / 399.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005111/0.6976, allocations: 199.2 kB / 399.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.2e-05/0.6977, allocations: 47.02 kB / 399.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 1.004e-05/0.6977, allocations: 0 / 399.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.02632/0.7241, allocations: 6.224 MB / 405.8 MB, free: 11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.534e-05/0.7242, allocations: 64.41 kB / 405.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005349/0.7296, allocations: 1.441 MB / 407.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004441/0.7301, allocations: 49.7 kB / 407.3 MB, free: 9.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.7316, allocations: 1.042 MB / 408.4 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.7326, allocations: 402.8 kB / 408.8 MB, free: 7.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.734, allocations: 251.5 kB / 409 MB, free: 7.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002665/0.7343, allocations: 361.9 kB / 409.4 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.7366, allocations: 0.6871 MB / 410.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002782/0.7394, allocations: 1.074 MB / 411.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004981/0.7445, allocations: 1.866 MB / 413 MB, free: 3.473 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.169e-05/0.7445, allocations: 3.281 kB / 413 MB, free: 3.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.007973/0.7525, allocations: 2.419 MB / 415.4 MB, free: 1.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.517e-05/0.7526, allocations: 12 kB / 415.4 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-05/0.7527, allocations: 12 kB / 415.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.7544, allocations: 415.9 kB / 415.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002253/0.7567, allocations: 330.5 kB / 416.2 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01187/0.7686, allocations: 6.46 MB / 422.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002843/0.7715, allocations: 103.9 kB / 422.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004772/0.772, allocations: 55.98 kB / 422.8 MB, free: 9.367 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.003191/0.7752, allocations: 0.6921 MB / 423.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.7763, allocations: 158 kB / 423.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007681/0.784, allocations: 2.132 MB / 425.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.628e-05/0.784, allocations: 12 kB / 425.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.613e-05/0.7841, allocations: 4 kB / 425.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.39e-05/0.7841, allocations: 7.969 kB / 425.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.7994, allocations: 4.586 MB / 430.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.159e-05/0.7995, allocations: 4 kB / 430.4 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.8009, allocations: 215.4 kB / 430.6 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001767/0.8027, allocations: 458 kB / 431 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002116/0.803, allocations: 31.98 kB / 431.1 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/0.8151, allocations: 7.924 MB / 439 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/0.8152, allocations: 6.625 kB / 439 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00868/0.8239, allocations: 3.094 MB / 442.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/0.8255, allocations: 379 kB / 442.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009008/0.8264, allocations: 35.92 kB / 442.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002228/0.8287, allocations: 79.91 kB / 442.6 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005722/0.8293, allocations: 91.88 kB / 442.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/0.8295, allocations: 47.92 kB / 442.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003894/0.8335, allocations: 0.9847 MB / 443.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8335, allocations: 0 / 443.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004304/0.8378, allocations: 456 kB / 444.1 MB, free: 3.352 MB / 350.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.001026/0.8389, allocations: 206.8 kB / 444.3 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007079/0.846, allocations: 2.221 MB / 446.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/0.846, allocations: 4 kB / 446.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004337/0.8504, allocations: 1.439 MB / 448 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006055/0.8565, allocations: 388.2 kB / 448.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/0.8749, allocations: 5.487 MB / 453.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002898/0.8778, allocations: 1.784 MB / 455.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/0.879, allocations: 127.4 kB / 455.8 MB, free: 7.598 MB / 366.1 MB Notification: Performance of SimCode: time 1.663e-06/0.879, allocations: 0 / 455.8 MB, free: 7.598 MB / 366.1 MB Notification: Performance of Templates: time 0.1312/1.01, allocations: 68.9 MB / 0.5124 GB, free: 2.766 MB / 430.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