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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001497/0.001497, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.2 MB / 219.8 MB, free: 14.19 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008053/0.0008053, allocations: 82.7 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.163e-05/2.167e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07573/0.07576, allocations: 47.57 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2912/0.367, allocations: 109 MB / 479 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.3673, allocations: 91.78 kB / 479.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1363/0.5036, allocations: 52.03 MB / 0.5187 GB, free: 13.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.5036, allocations: 0 / 0.5187 GB, free: 13.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001447/0.5038, allocations: 63.88 kB / 0.5188 GB, free: 13.29 MB / 410.7 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.004044/0.5079, allocations: 2.42 MB / 0.5211 GB, free: 10.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.5079, allocations: 12.03 kB / 0.5211 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007319/0.5086, allocations: 328.3 kB / 0.5215 GB, free: 10.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003313/0.512, allocations: 1.767 MB / 0.5232 GB, free: 8.648 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.5121, allocations: 148 kB / 0.5233 GB, free: 8.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003105/0.5124, allocations: 207.9 kB / 0.5235 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004501/0.5169, allocations: 2.6 MB / 0.5261 GB, free: 5.566 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.901e-05/0.517, allocations: 3.906 kB / 0.5261 GB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/0.5172, allocations: 84 kB / 0.5262 GB, free: 5.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.848e-05/0.5173, allocations: 91.94 kB / 0.5262 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003375/0.5207, allocations: 2.054 MB / 0.5282 GB, free: 3.336 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1949/0.7156, allocations: 8.316 MB / 0.5364 GB, free: 98.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.7182, allocations: 1.591 MB / 0.5379 GB, free: 97.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.7196, allocations: 0.9735 MB / 0.5389 GB, free: 97.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002804/0.7199, allocations: 141 kB / 0.539 GB, free: 97.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.72, allocations: 43.45 kB / 0.539 GB, free: 97.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 3.717e-06/0.72, allocations: 6.812 kB / 0.5391 GB, free: 97.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=135): time 0.009612/0.7296, allocations: 5.02 MB / 0.544 GB, free: 96.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.7297, allocations: 70.09 kB / 0.544 GB, free: 96.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.7324, allocations: 1.864 MB / 0.5458 GB, free: 96.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.72e-05/0.7325, allocations: 48.92 kB / 0.5459 GB, free: 96.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006739/0.7332, allocations: 1.096 MB / 0.547 GB, free: 96.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000304/0.7335, allocations: 471.4 kB / 0.5474 GB, free: 95.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.79e-05/0.7336, allocations: 26.69 kB / 0.5474 GB, free: 95.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.375e-05/0.7337, allocations: 359.6 kB / 0.5478 GB, free: 95.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.7347, allocations: 0.7071 MB / 0.5485 GB, free: 95.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.7359, allocations: 0.9626 MB / 0.5494 GB, free: 95.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.7371, allocations: 0.8472 MB / 0.5502 GB, free: 95.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.7371, allocations: 2.156 kB / 0.5502 GB, free: 95.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004057/0.7411, allocations: 2.709 MB / 0.5529 GB, free: 95.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.7412, allocations: 14.12 kB / 0.5529 GB, free: 95.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.7412, allocations: 8.562 kB / 0.5529 GB, free: 95.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/0.7432, allocations: 0.8367 MB / 0.5537 GB, free: 95.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.7442, allocations: 270.3 kB / 0.554 GB, free: 95.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009765/0.754, allocations: 9.297 MB / 0.5631 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.7554, allocations: 95.69 kB / 0.5631 GB, free: 90.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.7555, allocations: 56.69 kB / 0.5632 GB, free: 90.26 MB / 410.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002364/0.7558, allocations: 176.5 kB / 0.5634 GB, free: 90.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/0.7561, allocations: 196.9 kB / 0.5636 GB, free: 90.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003774/0.7599, allocations: 2.474 MB / 0.566 GB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7599, allocations: 12.78 kB / 0.566 GB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.7599, allocations: 6.531 kB / 0.566 GB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.7599, allocations: 7.219 kB / 0.566 GB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007448/0.7674, allocations: 5.001 MB / 0.5709 GB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/0.7674, allocations: 7.594 kB / 0.5709 GB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009564/0.7684, allocations: 218.9 kB / 0.5711 GB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001774/0.7702, allocations: 0.713 MB / 0.5718 GB, free: 86.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.7703, allocations: 32.39 kB / 0.5718 GB, free: 86.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008279/0.7786, allocations: 8.449 MB / 0.5801 GB, free: 81.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.7786, allocations: 3.969 kB / 0.5801 GB, free: 81.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0058/0.7844, allocations: 3.596 MB / 0.5836 GB, free: 79.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/0.7858, allocations: 477.1 kB / 0.584 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.7861, allocations: 35.92 kB / 0.5841 GB, free: 79.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009419/0.787, allocations: 94.27 kB / 0.5842 GB, free: 79.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/0.7873, allocations: 103.1 kB / 0.5843 GB, free: 79.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.529e-05/0.7874, allocations: 42.95 kB / 0.5843 GB, free: 79.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001813/0.7892, allocations: 1.459 MB / 0.5857 GB, free: 78.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7892, allocations: 0 / 0.5857 GB, free: 78.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00188/0.7911, allocations: 0.5957 MB / 0.5863 GB, free: 78.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.7922, allocations: 0.5867 MB / 0.5869 GB, free: 78.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003317/0.7956, allocations: 2.378 MB / 0.5892 GB, free: 77.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.7956, allocations: 0 / 0.5892 GB, free: 77.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00211/0.7977, allocations: 1.676 MB / 0.5908 GB, free: 76.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/0.7996, allocations: 411.6 kB / 0.5912 GB, free: 76.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005716/0.8053, allocations: 4.28 MB / 0.5954 GB, free: 74.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.8065, allocations: 2.01 MB / 0.5974 GB, free: 73.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001107/0.8076, allocations: 396.8 kB / 0.5978 GB, free: 73.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003317/0.808, allocations: 130.8 kB / 0.5979 GB, free: 73.29 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.808, allocations: 7.609 kB / 0.5979 GB, free: 73.29 MB / 410.7 MB Notification: Performance of Templates: time 0.04292/0.8509, allocations: 31.69 MB / 0.6288 GB, free: 49.23 MB / 410.7 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/jenkins/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