Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.61 kB / 306.9 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09366/0.0948, allocations: 50.52 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01084/0.1057, allocations: 10.29 MB / 367.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006031/0.1118, allocations: 3.459 MB / 371.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/0.1132, allocations: 55.75 kB / 371.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1562/0.2695, allocations: 0.6691 MB / 371.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0027/0.2722, allocations: 0.7553 MB / 372.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008353/0.2731, allocations: 369.4 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003286/0.2764, allocations: 3.098 MB / 376.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002099/0.2785, allocations: 2.029 MB / 378.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.2801, allocations: 1.115 MB / 379.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001823/0.282, allocations: 1.526 MB / 380.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004152/0.2824, allocations: 207.8 kB / 381 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008285/0.2832, allocations: 319.7 kB / 381.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007489/0.284, allocations: 0.8125 MB / 382.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001365/0.2854, allocations: 1.374 MB / 383.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002834/0.2882, allocations: 3.616 MB / 387.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2882, allocations: 1.406 kB / 387.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2882, allocations: 0 / 387.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7e-05/0.2883, allocations: 0 / 387.1 MB, free: 6.594 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00543/0.2937, allocations: 3.061 MB / 390.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2938, allocations: 8.812 kB / 390.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008585/0.2946, allocations: 317.7 kB / 390.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.2969, allocations: 1.575 MB / 392.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.297, allocations: 173.2 kB / 392.2 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002993/0.2973, allocations: 219.6 kB / 392.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004293/0.3016, allocations: 2.923 MB / 395.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.43e-05/0.3017, allocations: 11.61 kB / 395.4 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001924/0.3019, allocations: 95.61 kB / 395.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/0.302, allocations: 111.1 kB / 395.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003509/0.3055, allocations: 2.437 MB / 398 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/0.3188, allocations: 9.124 MB / 407.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.3211, allocations: 1.698 MB / 408.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.3227, allocations: 0.9912 MB / 409.8 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002959/0.323, allocations: 206.2 kB / 410 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.3231, allocations: 50.61 kB / 410.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.775e-06/0.3231, allocations: 4 kB / 410.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01396/0.3371, allocations: 6.562 MB / 416.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.3371, allocations: 64.41 kB / 416.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/0.3396, allocations: 1.577 MB / 418.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.3397, allocations: 45.7 kB / 418.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000769/0.3405, allocations: 1.11 MB / 419.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003583/0.3409, allocations: 430.6 kB / 419.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004541/0.3413, allocations: 276.7 kB / 420.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.67e-05/0.3414, allocations: 301.1 kB / 420.4 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.3426, allocations: 0.7105 MB / 421.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/0.3441, allocations: 1.138 MB / 422.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/0.3468, allocations: 1.963 MB / 424.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.3469, allocations: 4 kB / 424.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00429/0.3512, allocations: 2.518 MB / 426.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.3512, allocations: 15.94 kB / 426.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.337e-05/0.3512, allocations: 12.28 kB / 426.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009879/0.3522, allocations: 431 kB / 427.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3535, allocations: 351.5 kB / 427.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006587/0.3601, allocations: 6.551 MB / 434.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.3616, allocations: 107.8 kB / 434.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/0.3618, allocations: 63.98 kB / 434.3 MB, free: 11.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.001378/0.3632, allocations: 0.716 MB / 435 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004323/0.3637, allocations: 169.9 kB / 435.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003894/0.3676, allocations: 2.2 MB / 437.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.3676, allocations: 16.03 kB / 437.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.3676, allocations: 4 kB / 437.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.3676, allocations: 11.95 kB / 437.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008413/0.376, allocations: 4.781 MB / 442.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.3761, allocations: 4 kB / 442.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000939/0.377, allocations: 224.1 kB / 442.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.3782, allocations: 455.1 kB / 442.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.3783, allocations: 35.98 kB / 442.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007634/0.386, allocations: 7.981 MB / 450.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.386, allocations: 4 kB / 450.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005251/0.3913, allocations: 3.225 MB / 454.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.3923, allocations: 398.8 kB / 454.5 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005036/0.3928, allocations: 28 kB / 454.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.394, allocations: 87.89 kB / 454.6 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/0.3942, allocations: 96.75 kB / 454.7 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.291e-05/0.3943, allocations: 43.98 kB / 454.7 MB, free: 5.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001827/0.3962, allocations: 1.067 MB / 455.8 MB, free: 4.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3962, allocations: 0 / 455.8 MB, free: 4.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001958/0.3981, allocations: 488 kB / 456.3 MB, free: 4.434 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0004217/0.3986, allocations: 202.8 kB / 456.5 MB, free: 4.227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003765/0.4023, allocations: 2.279 MB / 458.7 MB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4024, allocations: 4 kB / 458.7 MB, free: 1.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002372/0.4047, allocations: 1.477 MB / 460.2 MB, free: 368 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.4074, allocations: 458.3 kB / 460.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009236/0.4167, allocations: 5.771 MB / 466.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/0.4186, allocations: 1.835 MB / 468.3 MB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006003/0.4192, allocations: 131.4 kB / 468.4 MB, free: 8.074 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4192, allocations: 0 / 468.4 MB, free: 8.074 MB / 382.1 MB Notification: Performance of Templates: time 0.2213/0.6405, allocations: 73.73 MB / 0.5294 GB, free: 148 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches