Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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 3.2.3+maint.om/package.mo", uses=false) 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 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.AsynchronousInductionMachines.AIMC_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_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 111.9 kB / 18.4 MB, free: 4.691 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.001225/0.001225, allocations: 182.4 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 43.94 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07289/0.07396, allocations: 46.62 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.1629/0.2369, allocations: 9.606 MB / 385.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005531/0.2425, allocations: 3.487 MB / 388.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001304/0.2438, allocations: 42.69 kB / 389 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.2457, allocations: 0.6738 MB / 389.7 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002604/0.2483, allocations: 0.8203 MB / 390.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.2495, allocations: 460.9 kB / 390.9 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003243/0.2528, allocations: 2.67 MB / 393.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002013/0.2548, allocations: 1.821 MB / 395.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.2566, allocations: 1.182 MB / 396.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002157/0.2588, allocations: 1.502 MB / 398.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006319/0.2594, allocations: 305.5 kB / 398.4 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.2609, allocations: 0.5549 MB / 399 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001084/0.262, allocations: 1.035 MB / 400 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.2638, allocations: 1.479 MB / 401.5 MB, free: 336 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005166/0.2689, allocations: 4.281 MB / 405.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.269, allocations: 3.938 kB / 405.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.269, allocations: 1.594 kB / 405.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.2691, allocations: 4 kB / 405.8 MB, free: 13.85 MB / 334.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.007002/0.2761, allocations: 3.146 MB / 408.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2762, allocations: 9.688 kB / 408.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009482/0.2771, allocations: 325.2 kB / 409.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00271/0.2798, allocations: 1.617 MB / 410.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.28, allocations: 161.9 kB / 411 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003018/0.2803, allocations: 200.5 kB / 411.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004376/0.2847, allocations: 2.697 MB / 413.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.681e-05/0.2847, allocations: 6.656 kB / 413.9 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.2849, allocations: 81.73 kB / 414 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/0.285, allocations: 96.55 kB / 414.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003864/0.2889, allocations: 2.284 MB / 416.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0126/0.3015, allocations: 8.13 MB / 424.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002755/0.3043, allocations: 1.638 MB / 426.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.3061, allocations: 1.109 MB / 427.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002206/0.3064, allocations: 126.1 kB / 427.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3064, allocations: 51.5 kB / 427.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.507e-06/0.3064, allocations: 0 / 427.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01197/0.3184, allocations: 6.205 MB / 433.6 MB, free: 5.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.3185, allocations: 68.72 kB / 433.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002851/0.3213, allocations: 2.152 MB / 435.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001737/0.3215, allocations: 45.7 kB / 435.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007936/0.3223, allocations: 1.111 MB / 437 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003834/0.3227, allocations: 461.4 kB / 437.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003816/0.3231, allocations: 239.4 kB / 437.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3233, allocations: 361.9 kB / 438 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.3245, allocations: 0.7574 MB / 438.8 MB, free: 116 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/0.3259, allocations: 1.013 MB / 439.8 MB, free: 15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/0.3286, allocations: 1.854 MB / 441.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.3286, allocations: 3.938 kB / 441.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004972/0.3336, allocations: 2.761 MB / 444.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.3336, allocations: 8 kB / 444.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.3336, allocations: 11.98 kB / 444.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/0.3355, allocations: 0.7736 MB / 445.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.3366, allocations: 275.5 kB / 445.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.3479, allocations: 9.596 MB / 455.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.3495, allocations: 95.95 kB / 455.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/0.3497, allocations: 51.98 kB / 455.2 MB, free: 15.18 MB / 382.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.001359/0.351, allocations: 0.7394 MB / 456 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005012/0.3515, allocations: 205.4 kB / 456.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004309/0.3559, allocations: 2.481 MB / 458.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.3559, allocations: 12 kB / 458.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.3559, allocations: 8 kB / 458.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.3559, allocations: 15.84 kB / 458.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008304/0.3642, allocations: 4.949 MB / 463.6 MB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.3643, allocations: 0 / 463.6 MB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009982/0.3653, allocations: 215.6 kB / 463.8 MB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/0.3669, allocations: 0.6512 MB / 464.5 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.3671, allocations: 31.98 kB / 464.5 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/0.3758, allocations: 8.7 MB / 473.2 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.3758, allocations: 3.938 kB / 473.2 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005926/0.3818, allocations: 3.532 MB / 476.8 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.3829, allocations: 438.5 kB / 477.2 MB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.3832, allocations: 35.92 kB / 477.2 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009397/0.3841, allocations: 83.91 kB / 477.3 MB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.3844, allocations: 100.9 kB / 477.4 MB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-05/0.3845, allocations: 47.95 kB / 477.5 MB, free: 8.328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002051/0.3866, allocations: 1.512 MB / 479 MB, free: 6.793 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.3866, allocations: 4 kB / 479 MB, free: 6.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002003/0.3886, allocations: 0.5273 MB / 479.5 MB, free: 6.262 MB / 398.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.001191/0.3898, allocations: 454 kB / 479.9 MB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004214/0.394, allocations: 2.388 MB / 482.3 MB, free: 3.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.3941, allocations: 5.25 kB / 482.3 MB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.3966, allocations: 1.605 MB / 483.9 MB, free: 1.738 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/0.3989, allocations: 446 kB / 484.4 MB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00793/0.4068, allocations: 5.177 MB / 489.5 MB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/0.4084, allocations: 1.936 MB / 491.5 MB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005973/0.409, allocations: 143.4 kB / 491.6 MB, free: 9.949 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.409, allocations: 3.938 kB / 491.6 MB, free: 9.945 MB / 414.1 MB Notification: Performance of Templates: time 0.06868/0.4777, allocations: 63.97 MB / 0.5426 GB, free: 9.832 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/AsynchronousInductionMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches