Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001006/0.001006, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009994/0.000999, allocations: 97.16 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007637/0.0007639, allocations: 47.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2226, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.008759/0.2314, allocations: 9.509 MB / 383.3 MB, free: 38.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005271/0.2367, allocations: 3.122 MB / 386.5 MB, free: 35.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.2379, allocations: 49.66 kB / 386.5 MB, free: 35.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.2392, allocations: 0.5902 MB / 387.1 MB, free: 35.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.2407, allocations: 0.6888 MB / 387.8 MB, free: 34.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005453/0.2413, allocations: 353.6 kB / 388.1 MB, free: 34.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002098/0.2434, allocations: 2.901 MB / 391 MB, free: 32.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.245, allocations: 1.941 MB / 393 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.2462, allocations: 1.035 MB / 394 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.2474, allocations: 1.444 MB / 395.5 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.2476, allocations: 196 kB / 395.6 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005231/0.2482, allocations: 303.8 kB / 395.9 MB, free: 27.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004853/0.2487, allocations: 0.7788 MB / 396.7 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008138/0.2495, allocations: 1.287 MB / 398 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001973/0.2515, allocations: 3.999 MB / 402 MB, free: 21.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2515, allocations: 0 / 402 MB, free: 21.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.2515, allocations: 4 kB / 402 MB, free: 21.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.074e-05/0.2515, allocations: 0 / 402 MB, free: 21.18 MB / 298.7 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.004189/0.2557, allocations: 2.893 MB / 404.9 MB, free: 18.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.2558, allocations: 8.031 kB / 404.9 MB, free: 18.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005397/0.2563, allocations: 297.7 kB / 405.2 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.2582, allocations: 1.429 MB / 406.6 MB, free: 16.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-05/0.2583, allocations: 168.5 kB / 406.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/0.2585, allocations: 215.9 kB / 407 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003212/0.2618, allocations: 2.799 MB / 409.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.388e-05/0.2618, allocations: 3.906 kB / 409.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/0.262, allocations: 87.98 kB / 409.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.285e-05/0.262, allocations: 108.2 kB / 410 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002949/0.265, allocations: 2.351 MB / 412.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009551/0.2746, allocations: 8.585 MB / 420.9 MB, free: 1.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.2764, allocations: 1.715 MB / 422.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.278, allocations: 0.9713 MB / 423.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002659/0.2782, allocations: 199.2 kB / 423.8 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.2783, allocations: 55.48 kB / 423.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of pre-optimization done (n=101): time 3.076e-06/0.2783, allocations: 3.938 kB / 423.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=116): time 0.01196/0.2903, allocations: 6.105 MB / 430 MB, free: 8.414 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.2903, allocations: 68.39 kB / 430 MB, free: 8.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/0.2922, allocations: 1.433 MB / 431.5 MB, free: 6.887 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.2922, allocations: 45.69 kB / 431.5 MB, free: 6.836 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000695/0.2929, allocations: 1.037 MB / 432.6 MB, free: 5.785 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.2932, allocations: 414 kB / 433 MB, free: 5.375 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003785/0.2936, allocations: 255.5 kB / 433.2 MB, free: 5.121 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2938, allocations: 365.9 kB / 433.6 MB, free: 4.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/0.2948, allocations: 0.6832 MB / 434.3 MB, free: 4.074 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.296, allocations: 1.074 MB / 435.3 MB, free: 2.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/0.2983, allocations: 1.86 MB / 437.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2983, allocations: 0 / 437.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003596/0.3019, allocations: 2.41 MB / 439.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.302, allocations: 8.25 kB / 439.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.302, allocations: 16 kB / 439.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008653/0.3029, allocations: 407.1 kB / 440 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.304, allocations: 335.5 kB / 440.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00604/0.31, allocations: 6.458 MB / 446.8 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.3112, allocations: 95.84 kB / 446.9 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.3113, allocations: 67.92 kB / 447 MB, free: 6.578 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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.00106/0.3123, allocations: 0.6857 MB / 447.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/0.3126, allocations: 158 kB / 447.8 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003402/0.316, allocations: 2.13 MB / 449.9 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.316, allocations: 12 kB / 449.9 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.316, allocations: 4 kB / 450 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.3161, allocations: 7.922 kB / 450 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007146/0.3232, allocations: 4.566 MB / 454.5 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.3232, allocations: 7.938 kB / 454.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/0.3241, allocations: 211.7 kB / 454.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.3252, allocations: 451.2 kB / 455.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.57e-05/0.3253, allocations: 35.97 kB / 455.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007184/0.3325, allocations: 7.918 MB / 463.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3325, allocations: 8 kB / 463.1 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0324/0.365, allocations: 23.61 MB / 486.7 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007176/0.3657, allocations: 383 kB / 487.1 MB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.3659, allocations: 40.08 kB / 487.2 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008143/0.3667, allocations: 83.84 kB / 487.2 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.367, allocations: 88.81 kB / 487.3 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.451e-05/0.3671, allocations: 47.92 kB / 487.4 MB, free: 12.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001406/0.3685, allocations: 0.9847 MB / 488.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3685, allocations: 0 / 488.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0019/0.3704, allocations: 0.6329 MB / 489 MB, free: 10.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * 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.0003398/0.3708, allocations: 186.4 kB / 489.2 MB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004003/0.3748, allocations: 2.211 MB / 491.4 MB, free: 8.445 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3748, allocations: 0 / 491.4 MB, free: 8.445 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002605/0.3774, allocations: 1.458 MB / 492.8 MB, free: 6.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.3797, allocations: 398.1 kB / 493.2 MB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/0.3906, allocations: 6.885 MB / 0.4884 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001988/0.3927, allocations: 1.86 MB / 0.4902 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001255/0.3939, allocations: 381.5 kB / 0.4906 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.3944, allocations: 123.4 kB / 0.4907 GB, free: 13.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.793e-06/0.3944, allocations: 0 / 0.4907 GB, free: 13.14 MB / 394.7 MB Notification: Performance of Templates: time 0.1892/0.5836, allocations: 28.58 MB / 0.5186 GB, free: 115.8 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches