Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001184, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2999, allocations: 50.54 MB / 409.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01112/0.3111, allocations: 9.66 MB / 418.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006189/0.3173, allocations: 3.162 MB / 422.1 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.3191, allocations: 55.75 kB / 422.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.3212, allocations: 0.6753 MB / 422.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002703/0.3239, allocations: 0.7726 MB / 423.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.3251, allocations: 387.4 kB / 424 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00312/0.3283, allocations: 2.56 MB / 426.5 MB, free: 280 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003014/0.3313, allocations: 2.337 MB / 428.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001716/0.333, allocations: 1.184 MB / 430 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002438/0.3355, allocations: 1.495 MB / 431.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007889/0.3363, allocations: 316 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.3373, allocations: 423.8 kB / 432.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008472/0.3382, allocations: 0.896 MB / 433.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.3396, allocations: 1.427 MB / 434.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004079/0.3437, allocations: 4.18 MB / 438.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3438, allocations: 0 / 438.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3438, allocations: 4 kB / 438.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.576e-05/0.3438, allocations: 0 / 438.8 MB, free: 3.93 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005373/0.3492, allocations: 2.982 MB / 441.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3493, allocations: 12.03 kB / 441.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007383/0.35, allocations: 303.2 kB / 442.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.3525, allocations: 1.551 MB / 443.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.3526, allocations: 164.3 kB / 443.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003073/0.3529, allocations: 215.9 kB / 444 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004712/0.3576, allocations: 2.796 MB / 446.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.459e-05/0.3577, allocations: 11.98 kB / 446.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000201/0.3579, allocations: 84 kB / 446.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.3581, allocations: 100.2 kB / 447 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004002/0.3621, allocations: 2.347 MB / 449.3 MB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.3746, allocations: 8.529 MB / 457.8 MB, free: 384 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002427/0.377, allocations: 1.698 MB / 459.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001672/0.3787, allocations: 0.9634 MB / 460.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003055/0.3791, allocations: 204.2 kB / 460.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.3791, allocations: 47.5 kB / 460.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.146e-06/0.3791, allocations: 0 / 460.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01348/0.3926, allocations: 6.271 MB / 467 MB, free: 6.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.3927, allocations: 60.41 kB / 467.1 MB, free: 6.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/0.3947, allocations: 1.445 MB / 468.5 MB, free: 5.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.151e-05/0.3948, allocations: 41.7 kB / 468.6 MB, free: 5.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007473/0.3956, allocations: 1.083 MB / 469.6 MB, free: 4.195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.3959, allocations: 424.3 kB / 470.1 MB, free: 3.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004001/0.3963, allocations: 263.5 kB / 470.3 MB, free: 3.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3965, allocations: 361.9 kB / 470.7 MB, free: 3.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.3976, allocations: 0.687 MB / 471.4 MB, free: 2.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.399, allocations: 1.07 MB / 472.4 MB, free: 1.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.4016, allocations: 1.875 MB / 474.3 MB, free: 15.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.4016, allocations: 4 kB / 474.3 MB, free: 15.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003973/0.4056, allocations: 2.426 MB / 476.7 MB, free: 12.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4056, allocations: 8 kB / 476.7 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.4057, allocations: 12 kB / 476.7 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009695/0.4066, allocations: 422.8 kB / 477.2 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.4078, allocations: 327.5 kB / 477.5 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006854/0.4147, allocations: 7.038 MB / 484.5 MB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.416, allocations: 103.9 kB / 484.6 MB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.4162, allocations: 63.98 kB / 484.7 MB, free: 4.344 MB / 398.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.001188/0.4174, allocations: 0.6846 MB / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003124/0.4177, allocations: 178.9 kB / 485.5 MB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003714/0.4214, allocations: 2.127 MB / 487.7 MB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4214, allocations: 16 kB / 487.7 MB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.4214, allocations: 4 kB / 487.7 MB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.4215, allocations: 11.91 kB / 487.7 MB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007189/0.4287, allocations: 4.56 MB / 492.3 MB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.4287, allocations: 4 kB / 492.3 MB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008851/0.4296, allocations: 215.7 kB / 492.5 MB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/0.4307, allocations: 443.3 kB / 492.9 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.342e-05/0.4308, allocations: 35.97 kB / 492.9 MB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008186/0.439, allocations: 8.632 MB / 0.4898 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.4391, allocations: 7.938 kB / 0.4898 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004839/0.4439, allocations: 3.112 MB / 0.4929 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007698/0.4447, allocations: 391.9 kB / 0.4932 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.4449, allocations: 31.98 kB / 0.4933 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008289/0.4457, allocations: 79.91 kB / 0.4933 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/0.446, allocations: 96.75 kB / 0.4934 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.4461, allocations: 32 kB / 0.4935 GB, free: 14.85 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001457/0.4475, allocations: 0.9888 MB / 0.4944 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4475, allocations: 3.938 kB / 0.4944 GB, free: 13.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001752/0.4493, allocations: 464 kB / 0.4949 GB, free: 13.4 MB / 430.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.0004282/0.4497, allocations: 198.9 kB / 0.4951 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003996/0.4537, allocations: 2.236 MB / 0.4973 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.383e-06/0.4538, allocations: 4.062 kB / 0.4973 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002335/0.4561, allocations: 1.442 MB / 0.4987 GB, free: 9.406 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.4582, allocations: 427.5 kB / 0.4991 GB, free: 9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006776/0.465, allocations: 4.502 MB / 0.5035 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001447/0.4664, allocations: 1.799 MB / 0.5052 GB, free: 2.586 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001136/0.4676, allocations: 373.6 kB / 0.5056 GB, free: 2.215 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003281/0.4679, allocations: 115.4 kB / 0.5057 GB, free: 2.102 MB / 430.1 MB Notification: Performance of SimCode: time 1.133e-06/0.4679, allocations: 0 / 0.5057 GB, free: 2.102 MB / 430.1 MB Notification: Performance of Templates: time 0.03921/0.5071, allocations: 24.85 MB / 0.53 GB, free: 9.461 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches