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.001064/0.001065, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001063/0.001063, allocations: 179.1 kB / 18.66 MB, free: 4.438 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.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 47.94 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2694, allocations: 49.44 MB / 401.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01085/0.2804, allocations: 9.651 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006878/0.2873, allocations: 3.56 MB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.2891, allocations: 47.81 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.2916, allocations: 0.6518 MB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003041/0.2947, allocations: 0.8271 MB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001542/0.2962, allocations: 467.2 kB / 416.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003798/0.3, allocations: 2.635 MB / 419.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002774/0.3028, allocations: 1.877 MB / 421.2 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.3049, allocations: 1.187 MB / 422.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002674/0.3076, allocations: 1.498 MB / 423.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009449/0.3086, allocations: 304 kB / 424.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001729/0.3103, allocations: 0.5776 MB / 424.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.3118, allocations: 1.024 MB / 425.7 MB, free: 424 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002728/0.3146, allocations: 1.477 MB / 427.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005476/0.32, allocations: 4.295 MB / 431.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3201, allocations: 0 / 431.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3201, allocations: 0 / 431.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001504/0.3202, allocations: 0 / 431.5 MB, free: 10.62 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.007468/0.3277, allocations: 3.157 MB / 434.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3278, allocations: 20.02 kB / 434.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008625/0.3286, allocations: 321.3 kB / 435 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002792/0.3315, allocations: 1.693 MB / 436.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.3316, allocations: 155.9 kB / 436.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003256/0.3319, allocations: 211.8 kB / 437.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004646/0.3366, allocations: 2.694 MB / 439.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.705e-05/0.3367, allocations: 7.938 kB / 439.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/0.3369, allocations: 83.98 kB / 439.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.337, allocations: 95.94 kB / 439.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00411/0.3411, allocations: 2.272 MB / 442.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.3541, allocations: 8.142 MB / 450.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/0.357, allocations: 1.624 MB / 452 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.3589, allocations: 1.108 MB / 453.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002348/0.3591, allocations: 126.1 kB / 453.2 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.3592, allocations: 51.5 kB / 453.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.967e-06/0.3592, allocations: 0 / 453.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01269/0.3719, allocations: 6.452 MB / 459.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.372, allocations: 64.72 kB / 459.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002776/0.3748, allocations: 2.156 MB / 461.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000144/0.3749, allocations: 49.64 kB / 462 MB, free: 11.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007703/0.3757, allocations: 1.108 MB / 463.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003679/0.3761, allocations: 457.3 kB / 463.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004006/0.3765, allocations: 235.5 kB / 463.8 MB, free: 9.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3767, allocations: 361.9 kB / 464.1 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.3779, allocations: 0.7574 MB / 464.9 MB, free: 8.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3793, allocations: 1.013 MB / 465.9 MB, free: 7.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.382, allocations: 1.865 MB / 467.7 MB, free: 5.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.382, allocations: 0 / 467.7 MB, free: 5.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005062/0.3871, allocations: 2.772 MB / 470.5 MB, free: 2.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.3872, allocations: 8 kB / 470.5 MB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.3872, allocations: 8 kB / 470.5 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/0.3892, allocations: 0.7853 MB / 471.3 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3903, allocations: 263.6 kB / 471.6 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/0.4019, allocations: 9.598 MB / 481.2 MB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.4034, allocations: 87.89 kB / 481.3 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.4036, allocations: 55.98 kB / 481.3 MB, free: 7.582 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.001304/0.4049, allocations: 0.7434 MB / 482.1 MB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/0.4053, allocations: 201.5 kB / 482.3 MB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004513/0.4098, allocations: 2.496 MB / 484.8 MB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.4099, allocations: 15.98 kB / 484.8 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.4099, allocations: 8 kB / 484.8 MB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.4099, allocations: 11.91 kB / 484.8 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008841/0.4188, allocations: 4.918 MB / 489.7 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.4188, allocations: 3.938 kB / 489.7 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.4199, allocations: 223.8 kB / 489.9 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001876/0.4218, allocations: 0.6493 MB / 490.6 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.4219, allocations: 43.88 kB / 490.6 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/0.4319, allocations: 8.717 MB / 499.3 MB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.432, allocations: 64 / 499.3 MB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006502/0.4385, allocations: 3.536 MB / 0.4911 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.4396, allocations: 442.5 kB / 0.4915 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/0.44, allocations: 27.98 kB / 0.4915 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.441, allocations: 83.91 kB / 0.4916 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/0.4413, allocations: 112.7 kB / 0.4917 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.816e-05/0.4415, allocations: 39.97 kB / 0.4918 GB, free: 0.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002299/0.4438, allocations: 1.515 MB / 0.4932 GB, free: 15.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4438, allocations: 0 / 0.4932 GB, free: 15.17 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002076/0.4459, allocations: 0.5273 MB / 0.4938 GB, free: 14.64 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.001259/0.4471, allocations: 468 kB / 0.4942 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004495/0.4516, allocations: 2.392 MB / 0.4965 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.4517, allocations: 0 / 0.4965 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002636/0.4543, allocations: 1.59 MB / 0.4981 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.4568, allocations: 443.5 kB / 0.4985 GB, free: 9.809 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008689/0.4655, allocations: 5.192 MB / 0.5036 GB, free: 4.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.4671, allocations: 1.936 MB / 0.5055 GB, free: 2.602 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006442/0.4678, allocations: 139.4 kB / 0.5056 GB, free: 2.465 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4678, allocations: 0 / 0.5056 GB, free: 2.465 MB / 430.1 MB Notification: Performance of Templates: time 0.2505/0.7183, allocations: 63.95 MB / 0.5681 GB, free: 112.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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