Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001622, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008825/0.0008825, allocations: 47.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2661, allocations: 49.43 MB / 400.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.02054/0.2867, allocations: 9.653 MB / 410.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.2968, allocations: 3.553 MB / 414 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002039/0.2989, allocations: 47.81 kB / 414 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001882/0.3008, allocations: 0.6947 MB / 414.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003027/0.3039, allocations: 0.8739 MB / 415.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.3052, allocations: 465.8 kB / 416 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003853/0.309, allocations: 2.642 MB / 418.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002146/0.3112, allocations: 1.877 MB / 420.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.313, allocations: 1.183 MB / 421.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.3151, allocations: 1.506 MB / 423.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004248/0.3155, allocations: 304 kB / 423.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.3166, allocations: 0.5699 MB / 424.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.3176, allocations: 1.025 MB / 425.1 MB, free: 352 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001998/0.3197, allocations: 1.477 MB / 426.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004702/0.3244, allocations: 4.295 MB / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.3244, allocations: 0 / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3244, allocations: 4 kB / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.3245, allocations: 0 / 430.9 MB, free: 10.55 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006364/0.3309, allocations: 3.161 MB / 434.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.331, allocations: 8.031 kB / 434.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007843/0.3318, allocations: 321.3 kB / 434.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.3343, allocations: 1.693 MB / 436.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3345, allocations: 159.9 kB / 436.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003076/0.3348, allocations: 203.9 kB / 436.4 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004418/0.3392, allocations: 2.702 MB / 439.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.147e-05/0.3393, allocations: 7.938 kB / 439.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001892/0.3395, allocations: 80 kB / 439.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001128/0.3396, allocations: 87.94 kB / 439.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003931/0.3435, allocations: 2.284 MB / 441.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01302/0.3566, allocations: 8.146 MB / 449.8 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00313/0.3597, allocations: 1.628 MB / 451.4 MB, free: 5.602 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002172/0.3619, allocations: 1.101 MB / 452.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002745/0.3622, allocations: 126 kB / 452.6 MB, free: 4.359 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.3623, allocations: 47.5 kB / 452.6 MB, free: 4.305 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.897e-06/0.3623, allocations: 4 kB / 452.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01337/0.3757, allocations: 6.453 MB / 459.1 MB, free: 13.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.3758, allocations: 68.72 kB / 459.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/0.3785, allocations: 2.156 MB / 461.3 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.3787, allocations: 49.7 kB / 461.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008158/0.3795, allocations: 1.1 MB / 462.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003621/0.3799, allocations: 457.3 kB / 462.9 MB, free: 9.805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004138/0.3803, allocations: 239.5 kB / 463.2 MB, free: 9.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3804, allocations: 361.9 kB / 463.5 MB, free: 9.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.3818, allocations: 0.7613 MB / 464.3 MB, free: 8.445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/0.3833, allocations: 1.013 MB / 465.3 MB, free: 7.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002938/0.3863, allocations: 1.869 MB / 467.2 MB, free: 5.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3863, allocations: 0 / 467.2 MB, free: 5.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005243/0.3916, allocations: 2.769 MB / 469.9 MB, free: 2.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3916, allocations: 8 kB / 469.9 MB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.3916, allocations: 8 kB / 469.9 MB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/0.3936, allocations: 0.7812 MB / 470.7 MB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.3948, allocations: 271.6 kB / 471 MB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/0.407, allocations: 9.59 MB / 480.6 MB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.4085, allocations: 95.95 kB / 480.7 MB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.4087, allocations: 51.98 kB / 480.7 MB, free: 7.508 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001353/0.4101, allocations: 0.7433 MB / 481.5 MB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004315/0.4105, allocations: 201.5 kB / 481.7 MB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004708/0.4152, allocations: 2.496 MB / 484.2 MB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/0.4153, allocations: 12 kB / 484.2 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4153, allocations: 8 kB / 484.2 MB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.4153, allocations: 11.91 kB / 484.2 MB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009141/0.4245, allocations: 4.926 MB / 489.1 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.4245, allocations: 3.938 kB / 489.1 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.4256, allocations: 215.6 kB / 489.3 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/0.4274, allocations: 0.6507 MB / 490 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.4276, allocations: 35.97 kB / 490 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/0.4376, allocations: 8.719 MB / 498.7 MB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4376, allocations: 0 / 498.7 MB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00625/0.4439, allocations: 3.54 MB / 0.4905 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008616/0.4447, allocations: 438.5 kB / 0.4909 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/0.445, allocations: 32.05 kB / 0.4909 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009941/0.446, allocations: 87.89 kB / 0.491 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/0.4464, allocations: 104.8 kB / 0.4911 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.4465, allocations: 43.97 kB / 0.4912 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002313/0.4488, allocations: 1.512 MB / 0.4927 GB, free: 15.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4488, allocations: 0 / 0.4927 GB, free: 15.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001798/0.4506, allocations: 0.5273 MB / 0.4932 GB, free: 14.57 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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 {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001073/0.4517, allocations: 465.4 kB / 0.4936 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004199/0.4559, allocations: 2.387 MB / 0.4959 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4559, allocations: 4 kB / 0.4959 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/0.4585, allocations: 1.59 MB / 0.4975 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/0.4605, allocations: 450 kB / 0.4979 GB, free: 9.738 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007564/0.4681, allocations: 5.117 MB / 0.5029 GB, free: 4.578 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/0.4698, allocations: 1.959 MB / 0.5048 GB, free: 2.586 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001077/0.4708, allocations: 383.7 kB / 0.5052 GB, free: 2.207 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.4712, allocations: 127.4 kB / 0.5053 GB, free: 2.082 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4712, allocations: 0 / 0.5053 GB, free: 2.082 MB / 430.1 MB Notification: Performance of Templates: time 0.05298/0.5242, allocations: 30.56 MB / 0.5352 GB, free: 3.742 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches