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.001582/0.001582, allocations: 105.8 kB / 17.93 MB, free: 5.547 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.001886/0.001886, allocations: 197.8 kB / 18.86 MB, free: 4.625 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.495/1.495, allocations: 205.1 MB / 224.7 MB, free: 12.36 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.001303/0.001303, allocations: 47.92 kB / 280.8 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09248/0.0938, allocations: 46.63 MB / 327.4 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01069/0.1045, allocations: 9.545 MB / 337 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006761/0.1113, allocations: 3.441 MB / 340.4 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.1131, allocations: 39.81 kB / 340.5 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002463/0.1156, allocations: 0.5945 MB / 341.1 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.1187, allocations: 0.7462 MB / 341.8 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.12, allocations: 403.5 kB / 342.2 MB, free: 5.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003276/0.1233, allocations: 2.681 MB / 344.9 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001924/0.1252, allocations: 1.81 MB / 346.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001683/0.1269, allocations: 1.179 MB / 347.9 MB, free: 216 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.1293, allocations: 1.592 MB / 349.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006213/0.1299, allocations: 304 kB / 349.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.1311, allocations: 0.5542 MB / 350.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008898/0.132, allocations: 0.9894 MB / 351.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001607/0.1337, allocations: 1.481 MB / 352.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003397/0.1371, allocations: 3.504 MB / 356.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1371, allocations: 0 / 356.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.879e-06/0.1371, allocations: 4 kB / 356.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.978e-05/0.1372, allocations: 3.984 kB / 356.3 MB, free: 7.762 MB / 302.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.006435/0.1436, allocations: 3.154 MB / 359.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1437, allocations: 12.03 kB / 359.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008222/0.1445, allocations: 321.3 kB / 359.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.147, allocations: 1.607 MB / 361.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.1472, allocations: 152 kB / 361.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003111/0.1475, allocations: 207.9 kB / 361.7 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004783/0.1523, allocations: 2.694 MB / 364.4 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.044e-05/0.1524, allocations: 7.984 kB / 364.4 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001869/0.1526, allocations: 80 kB / 364.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.1527, allocations: 95.94 kB / 364.6 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003901/0.1566, allocations: 2.276 MB / 366.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01389/0.1705, allocations: 8.239 MB / 375.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003012/0.1736, allocations: 1.627 MB / 376.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002049/0.1757, allocations: 1.098 MB / 377.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002702/0.1759, allocations: 118.1 kB / 378 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.176, allocations: 47.5 kB / 378 MB, free: 1.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.469e-06/0.176, allocations: 3.938 kB / 378 MB, free: 1.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.1751/0.3511, allocations: 6.206 MB / 384.2 MB, free: 50.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.3512, allocations: 66.33 kB / 384.3 MB, free: 50.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/0.3548, allocations: 2.153 MB / 386.4 MB, free: 49.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002086/0.355, allocations: 49.06 kB / 386.5 MB, free: 49.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008444/0.3558, allocations: 1.103 MB / 387.6 MB, free: 48.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.3562, allocations: 460.8 kB / 388 MB, free: 48.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000422/0.3567, allocations: 240.2 kB / 388.3 MB, free: 48.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3568, allocations: 364.4 kB / 388.6 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.3581, allocations: 0.7595 MB / 389.4 MB, free: 47.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.3596, allocations: 1.011 MB / 390.4 MB, free: 47.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/0.3623, allocations: 1.863 MB / 392.3 MB, free: 46.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.3623, allocations: 3.938 kB / 392.3 MB, free: 46.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005334/0.3676, allocations: 2.759 MB / 395 MB, free: 45.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.3677, allocations: 6.875 kB / 395 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.3678, allocations: 6.875 kB / 395 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00213/0.3699, allocations: 0.7949 MB / 395.8 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.371, allocations: 269.4 kB / 396.1 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009287/0.3803, allocations: 9.611 MB / 405.7 MB, free: 37.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.3819, allocations: 87.89 kB / 405.8 MB, free: 37.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/0.3821, allocations: 60.05 kB / 405.9 MB, free: 37.64 MB / 318.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.001159/0.3832, allocations: 0.7393 MB / 406.6 MB, free: 36.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003807/0.3836, allocations: 201.5 kB / 406.8 MB, free: 36.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003645/0.3873, allocations: 2.484 MB / 409.3 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/0.3873, allocations: 16 kB / 409.3 MB, free: 34.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.3873, allocations: 12.81 kB / 409.3 MB, free: 34.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.3873, allocations: 7.969 kB / 409.3 MB, free: 34.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007116/0.3945, allocations: 4.948 MB / 414.3 MB, free: 29.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.3945, allocations: 0 / 414.3 MB, free: 29.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000904/0.3954, allocations: 222.7 kB / 414.5 MB, free: 28.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.3969, allocations: 0.6508 MB / 415.1 MB, free: 28.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.44e-05/0.397, allocations: 47.84 kB / 415.2 MB, free: 28.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006614/0.4036, allocations: 8.686 MB / 423.9 MB, free: 19.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.4037, allocations: 7.969 kB / 423.9 MB, free: 19.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005022/0.4087, allocations: 3.535 MB / 427.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008339/0.4096, allocations: 438.5 kB / 427.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.4098, allocations: 35.98 kB / 427.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008824/0.4107, allocations: 83.91 kB / 427.9 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.411, allocations: 96.84 kB / 428 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-05/0.4111, allocations: 39.98 kB / 428.1 MB, free: 14.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001554/0.4126, allocations: 1.519 MB / 429.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.092e-06/0.4126, allocations: 0 / 429.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00158/0.4142, allocations: 0.526 MB / 430.1 MB, free: 12.81 MB / 318.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.001084/0.4153, allocations: 474 kB / 430.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004574/0.4199, allocations: 2.86 MB / 433.4 MB, free: 9.508 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.4199, allocations: 4.188 kB / 433.5 MB, free: 9.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001991/0.4219, allocations: 1.594 MB / 435 MB, free: 7.852 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/0.424, allocations: 450 kB / 435.5 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00714/0.4311, allocations: 6.196 MB / 441.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.4325, allocations: 1.932 MB / 443.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000547/0.4331, allocations: 143.4 kB / 443.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4331, allocations: 0 / 443.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Templates: time 0.07259/0.5057, allocations: 63.74 MB / 0.4956 GB, free: 15.18 MB / 398.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","../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