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.00131/0.00131, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 66.95 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09928, allocations: 50.53 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01083/0.1102, allocations: 10.34 MB / 367.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006441/0.1166, allocations: 3.485 MB / 371.3 MB, free: 208 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.1184, allocations: 63.75 kB / 371.4 MB, free: 144 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2302/0.3487, allocations: 0.7594 MB / 372.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00334/0.3521, allocations: 0.833 MB / 373 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.3533, allocations: 428.8 kB / 373.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004662/0.3579, allocations: 2.743 MB / 376.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00324/0.3612, allocations: 2.412 MB / 378.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002641/0.3639, allocations: 1.258 MB / 379.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003293/0.3672, allocations: 1.584 MB / 381.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/0.3683, allocations: 333.9 kB / 381.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001889/0.3702, allocations: 447.1 kB / 382.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.3714, allocations: 0.936 MB / 383.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003394/0.3748, allocations: 1.511 MB / 384.6 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006887/0.3818, allocations: 4.336 MB / 388.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3818, allocations: 4 kB / 388.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3818, allocations: 1.219 kB / 388.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001643/0.382, allocations: 0 / 388.9 MB, free: 4.969 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.008307/0.3903, allocations: 3.067 MB / 392 MB, free: 2.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3903, allocations: 8.844 kB / 392 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.3916, allocations: 314.4 kB / 392.3 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002842/0.3944, allocations: 1.574 MB / 393.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.3946, allocations: 173.5 kB / 394.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003273/0.3949, allocations: 227 kB / 394.3 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005052/0.4, allocations: 2.915 MB / 397.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.55e-05/0.4001, allocations: 16.98 kB / 397.2 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000218/0.4003, allocations: 85.28 kB / 397.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.4004, allocations: 112.3 kB / 397.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004526/0.4049, allocations: 2.434 MB / 399.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/0.4211, allocations: 9.128 MB / 409 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.4236, allocations: 1.693 MB / 410.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.4254, allocations: 0.9949 MB / 411.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003223/0.4257, allocations: 210.2 kB / 411.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.4258, allocations: 44.03 kB / 411.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 4.559e-06/0.4258, allocations: 0 / 411.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01526/0.441, allocations: 6.578 MB / 418.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.4411, allocations: 64.41 kB / 418.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002385/0.4435, allocations: 1.569 MB / 420.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.4436, allocations: 49.64 kB / 420.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008021/0.4444, allocations: 1.111 MB / 421.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.4448, allocations: 427.8 kB / 421.7 MB, free: 8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000427/0.4452, allocations: 275.3 kB / 422 MB, free: 7.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.4453, allocations: 301.1 kB / 422.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.4465, allocations: 0.7105 MB / 423 MB, free: 6.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.448, allocations: 1.134 MB / 424.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/0.4508, allocations: 1.971 MB / 426.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.4508, allocations: 4 kB / 426.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004306/0.4551, allocations: 2.518 MB / 428.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.4552, allocations: 15.94 kB / 428.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.4552, allocations: 12 kB / 428.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009705/0.4562, allocations: 428.7 kB / 429 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.4574, allocations: 347.4 kB / 429.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006859/0.4643, allocations: 7.133 MB / 436.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.4659, allocations: 107.9 kB / 436.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4661, allocations: 60 kB / 436.7 MB, free: 8.184 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.001315/0.4674, allocations: 0.7197 MB / 437.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.4677, allocations: 173.8 kB / 437.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003752/0.4715, allocations: 2.186 MB / 439.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.4715, allocations: 16 kB / 439.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.4715, allocations: 4 kB / 439.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.4716, allocations: 7.969 kB / 439.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008036/0.4796, allocations: 4.8 MB / 444.6 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.4796, allocations: 4 kB / 444.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009413/0.4806, allocations: 219.7 kB / 444.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.4817, allocations: 463.3 kB / 445.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.799e-05/0.4818, allocations: 39.98 kB / 445.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008014/0.4899, allocations: 8.682 MB / 454 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.4899, allocations: 11.97 kB / 454 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/0.4951, allocations: 3.217 MB / 457.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009595/0.4961, allocations: 394.8 kB / 457.6 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.4963, allocations: 32 kB / 457.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009104/0.4972, allocations: 87.91 kB / 457.7 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.4975, allocations: 96.73 kB / 457.8 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.331e-05/0.4976, allocations: 39.98 kB / 457.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001797/0.4994, allocations: 1.071 MB / 458.9 MB, free: 1.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4994, allocations: 0 / 458.9 MB, free: 1.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001846/0.5013, allocations: 488 kB / 459.4 MB, free: 0.6367 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.0004417/0.5017, allocations: 199 kB / 459.6 MB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005086/0.5068, allocations: 2.799 MB / 462.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.5068, allocations: 0 / 462.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002436/0.5093, allocations: 1.471 MB / 463.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.5119, allocations: 487.2 kB / 464.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008176/0.5201, allocations: 4.732 MB / 469 MB, free: 6.785 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/0.5219, allocations: 1.871 MB / 470.9 MB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001424/0.5233, allocations: 390.9 kB / 471.3 MB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.5237, allocations: 123.4 kB / 471.4 MB, free: 4.375 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5237, allocations: 0 / 471.4 MB, free: 4.375 MB / 382.1 MB Notification: Performance of Templates: time 0.04697/0.5707, allocations: 26.44 MB / 497.9 MB, free: 10.2 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/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