Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008053/0.0008054, allocations: 97.12 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001961/0.0001961, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2386, allocations: 51.28 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.007442/0.2461, allocations: 7.818 MB / 415.3 MB, free: 19.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005484/0.2516, allocations: 2.711 MB / 418 MB, free: 17.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.2529, allocations: 39.81 kB / 418.1 MB, free: 17.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.2543, allocations: 0.4893 MB / 418.6 MB, free: 16.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001779/0.2561, allocations: 0.5904 MB / 419.2 MB, free: 16.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006636/0.2568, allocations: 211.7 kB / 419.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.2588, allocations: 2.296 MB / 421.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.2601, allocations: 1.224 MB / 422.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001297/0.2614, allocations: 0.7743 MB / 423.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.2625, allocations: 1.066 MB / 424.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.2627, allocations: 116 kB / 424.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000472/0.2632, allocations: 191.8 kB / 425 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000468/0.2637, allocations: 0.5763 MB / 425.6 MB, free: 9.648 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.2641, allocations: 432.6 kB / 426 MB, free: 9.219 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001955/0.2661, allocations: 2.832 MB / 428.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2661, allocations: 0 / 428.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.2661, allocations: 0 / 428.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.88e-05/0.2662, allocations: 0 / 428.8 MB, free: 6.379 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.003773/0.2699, allocations: 2.154 MB / 431 MB, free: 4.168 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.613e-05/0.27, allocations: 12.03 kB / 431 MB, free: 4.156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006482/0.2707, allocations: 245.3 kB / 431.3 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/0.2725, allocations: 1.235 MB / 432.5 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.88e-05/0.2726, allocations: 139.5 kB / 432.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.2728, allocations: 175.9 kB / 432.8 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003853/0.2767, allocations: 2.367 MB / 435.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.283e-05/0.2768, allocations: 7.984 kB / 435.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000178/0.277, allocations: 79.91 kB / 435.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/0.2771, allocations: 87.52 kB / 435.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003655/0.2807, allocations: 1.981 MB / 437.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01135/0.2921, allocations: 7.168 MB / 444.5 MB, free: 6.402 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.294, allocations: 1.277 MB / 445.8 MB, free: 5.055 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.2956, allocations: 0.8854 MB / 446.6 MB, free: 4.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002596/0.2959, allocations: 126 kB / 446.8 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/0.296, allocations: 43.56 kB / 446.8 MB, free: 3.977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=87): time 4.007e-06/0.296, allocations: 0 / 446.8 MB, free: 3.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.0137/0.3097, allocations: 6.188 MB / 453 MB, free: 13.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.3098, allocations: 68.41 kB / 453.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.3116, allocations: 1.203 MB / 454.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.169e-05/0.3117, allocations: 45.7 kB / 454.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006517/0.3124, allocations: 0.8689 MB / 455.2 MB, free: 11.4 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003216/0.3127, allocations: 362.8 kB / 455.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/0.3128, allocations: 28 kB / 455.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.313, allocations: 353.9 kB / 455.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.314, allocations: 0.6155 MB / 456.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.3152, allocations: 0.9303 MB / 457.5 MB, free: 8.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.3164, allocations: 0.7642 MB / 458.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3164, allocations: 3.953 kB / 458.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003849/0.3202, allocations: 2.227 MB / 460.5 MB, free: 5.957 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.3203, allocations: 15.95 kB / 460.5 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.3203, allocations: 8 kB / 460.5 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.3214, allocations: 479.9 kB / 460.9 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.3224, allocations: 275.6 kB / 461.2 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006468/0.3289, allocations: 6.422 MB / 467.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.3302, allocations: 83.81 kB / 467.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.149e-05/0.3303, allocations: 55.94 kB / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001307/0.3316, allocations: 0.595 MB / 468.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.3319, allocations: 134.4 kB / 468.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003555/0.3355, allocations: 2.043 MB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.3355, allocations: 19.95 kB / 470.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.3355, allocations: 8 kB / 470.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.3355, allocations: 3.984 kB / 470.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006928/0.3425, allocations: 4.236 MB / 474.8 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.3425, allocations: 4 kB / 474.8 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007307/0.3432, allocations: 179.8 kB / 475 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.3445, allocations: 0.5232 MB / 475.5 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.39e-05/0.3446, allocations: 35.97 kB / 475.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007574/0.3522, allocations: 7.916 MB / 483.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.3522, allocations: 7.938 kB / 483.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00475/0.357, allocations: 2.963 MB / 486.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006872/0.3577, allocations: 347.3 kB / 486.8 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.3579, allocations: 31.98 kB / 486.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007497/0.3586, allocations: 83.86 kB / 486.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.3589, allocations: 84.78 kB / 487 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.1e-05/0.3589, allocations: 35.98 kB / 487 MB, free: 10.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001337/0.3603, allocations: 0.8344 MB / 487.8 MB, free: 9.293 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3603, allocations: 0 / 487.8 MB, free: 9.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00167/0.362, allocations: 404 kB / 488.2 MB, free: 8.898 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[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 (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002948/0.3623, allocations: 162.1 kB / 488.4 MB, free: 8.734 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003473/0.3658, allocations: 2.166 MB / 490.6 MB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3658, allocations: 0 / 490.6 MB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00232/0.3681, allocations: 1.487 MB / 492 MB, free: 4.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.37, allocations: 370.8 kB / 492.4 MB, free: 4.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00771/0.3778, allocations: 4.706 MB / 497.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.3793, allocations: 1.618 MB / 498.7 MB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/0.3797, allocations: 103.4 kB / 498.8 MB, free: 14.03 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3797, allocations: 0 / 498.8 MB, free: 14.03 MB / 378.7 MB Notification: Performance of Templates: time 0.2847/0.6644, allocations: 67.74 MB / 0.5533 GB, free: 44.78 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches