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.001432/0.001432, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001672/0.001672, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.252, allocations: 50.56 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.01095/0.263, allocations: 9.653 MB / 418.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006244/0.2692, allocations: 3.162 MB / 422.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.2704, allocations: 55.75 kB / 422.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.2721, allocations: 0.7027 MB / 422.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002015/0.2741, allocations: 0.8077 MB / 423.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008466/0.275, allocations: 395.4 kB / 424 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00243/0.2774, allocations: 2.556 MB / 426.6 MB, free: 216 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.2798, allocations: 2.326 MB / 428.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.2813, allocations: 1.203 MB / 430.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001668/0.2829, allocations: 1.495 MB / 431.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003656/0.2833, allocations: 324 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006649/0.284, allocations: 419.8 kB / 432.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008141/0.2848, allocations: 0.8999 MB / 433.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.2862, allocations: 1.415 MB / 434.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003583/0.2898, allocations: 4.164 MB / 438.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2898, allocations: 8 kB / 438.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2898, allocations: 0 / 438.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.062e-05/0.2898, allocations: 0 / 438.8 MB, free: 3.879 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.005126/0.295, allocations: 2.912 MB / 441.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.295, allocations: 12.03 kB / 441.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007257/0.2957, allocations: 297.7 kB / 442 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002345/0.2981, allocations: 1.531 MB / 443.6 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.2982, allocations: 168.3 kB / 443.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002982/0.2985, allocations: 211.9 kB / 443.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004128/0.3027, allocations: 2.796 MB / 446.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.267e-05/0.3027, allocations: 7.906 kB / 446.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001953/0.3029, allocations: 91.97 kB / 446.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.3031, allocations: 104.2 kB / 446.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003782/0.3068, allocations: 2.351 MB / 449.3 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01243/0.3193, allocations: 8.503 MB / 457.8 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.3217, allocations: 1.702 MB / 459.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.3233, allocations: 0.9557 MB / 460.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002724/0.3236, allocations: 204 kB / 460.7 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3236, allocations: 47.5 kB / 460.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.896e-06/0.3236, allocations: 4 kB / 460.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01216/0.3358, allocations: 6.235 MB / 466.9 MB, free: 6.949 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.3359, allocations: 64.41 kB / 467 MB, free: 6.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/0.3378, allocations: 1.449 MB / 468.4 MB, free: 5.414 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.852e-05/0.3379, allocations: 45.7 kB / 468.5 MB, free: 5.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007799/0.3387, allocations: 1.037 MB / 469.5 MB, free: 4.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002963/0.339, allocations: 414.1 kB / 469.9 MB, free: 3.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000407/0.3394, allocations: 255.4 kB / 470.2 MB, free: 3.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3396, allocations: 369.8 kB / 470.5 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.3407, allocations: 0.6832 MB / 471.2 MB, free: 2.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.342, allocations: 1.073 MB / 472.3 MB, free: 1.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/0.3445, allocations: 1.868 MB / 474.2 MB, free: 15.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3445, allocations: 4 kB / 474.2 MB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003954/0.3485, allocations: 2.417 MB / 476.6 MB, free: 12.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.3485, allocations: 8 kB / 476.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.3485, allocations: 12 kB / 476.6 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009723/0.3495, allocations: 422.9 kB / 477 MB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.3507, allocations: 327.5 kB / 477.3 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007104/0.3579, allocations: 7.041 MB / 484.4 MB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3592, allocations: 103.8 kB / 484.5 MB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.3593, allocations: 59.98 kB / 484.5 MB, free: 4.484 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.001159/0.3605, allocations: 0.6885 MB / 485.2 MB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002756/0.3608, allocations: 162 kB / 485.4 MB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003567/0.3644, allocations: 2.13 MB / 487.5 MB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.3644, allocations: 12 kB / 487.5 MB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.58e-05/0.3644, allocations: 4 kB / 487.5 MB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.3644, allocations: 7.969 kB / 487.5 MB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00713/0.3716, allocations: 4.563 MB / 492.1 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/0.3716, allocations: 4 kB / 492.1 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009037/0.3725, allocations: 211.7 kB / 492.3 MB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.3736, allocations: 459.5 kB / 492.8 MB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-05/0.3737, allocations: 35.97 kB / 492.8 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008014/0.3818, allocations: 8.611 MB / 0.4897 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.832e-05/0.3818, allocations: 15.88 kB / 0.4897 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/0.3868, allocations: 3.103 MB / 0.4927 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007803/0.3876, allocations: 379 kB / 0.4931 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/0.3879, allocations: 31.98 kB / 0.4931 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009583/0.3888, allocations: 79.91 kB / 0.4932 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.3891, allocations: 96.75 kB / 0.4933 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-05/0.3892, allocations: 39.94 kB / 0.4933 GB, free: 15.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001629/0.3908, allocations: 0.9849 MB / 0.4943 GB, free: 14.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3908, allocations: 4 kB / 0.4943 GB, free: 14.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001661/0.3925, allocations: 464 kB / 0.4947 GB, free: 13.57 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.0003869/0.3929, allocations: 199 kB / 0.4949 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.3965, allocations: 2.236 MB / 0.4971 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3965, allocations: 0 / 0.4971 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002288/0.3988, allocations: 1.435 MB / 0.4985 GB, free: 9.586 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.4009, allocations: 423.4 kB / 0.4989 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007202/0.4081, allocations: 4.44 MB / 0.5032 GB, free: 4.676 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/0.4098, allocations: 1.803 MB / 0.505 GB, free: 2.836 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001131/0.411, allocations: 365.6 kB / 0.5053 GB, free: 2.473 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003946/0.4114, allocations: 115.4 kB / 0.5054 GB, free: 2.359 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4114, allocations: 0 / 0.5054 GB, free: 2.359 MB / 430.1 MB Notification: Performance of Templates: time 0.04309/0.4545, allocations: 24.86 MB / 0.5297 GB, free: 9.707 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