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.001606/0.001606, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001713/0.001713, allocations: 191 kB / 19.29 MB, free: 3.715 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.673/1.673, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001307/0.001307, allocations: 43.94 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1355, allocations: 46.64 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01258/0.1481, allocations: 9.614 MB / 338.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008254/0.1564, allocations: 3.476 MB / 341.8 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.1586, allocations: 43.81 kB / 341.9 MB, free: 6.582 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002113/0.1608, allocations: 0.6638 MB / 342.5 MB, free: 5.914 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003229/0.164, allocations: 0.8271 MB / 343.4 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.1655, allocations: 451.3 kB / 343.8 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004361/0.1699, allocations: 2.674 MB / 346.5 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002554/0.1724, allocations: 1.826 MB / 348.3 MB, free: 84 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.1746, allocations: 1.176 MB / 349.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.1773, allocations: 1.506 MB / 351 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005607/0.1779, allocations: 304 kB / 351.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.1794, allocations: 0.562 MB / 351.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.1806, allocations: 1.017 MB / 352.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001921/0.1825, allocations: 1.481 MB / 354.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005628/0.1882, allocations: 4.283 MB / 358.6 MB, free: 5.727 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.1882, allocations: 4 kB / 358.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.1882, allocations: 0 / 358.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001159/0.1884, allocations: 0 / 358.6 MB, free: 5.723 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.007586/0.1959, allocations: 3.161 MB / 361.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.803e-05/0.196, allocations: 12.03 kB / 361.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009393/0.197, allocations: 325.2 kB / 362.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003119/0.2001, allocations: 1.603 MB / 363.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.2003, allocations: 163.9 kB / 363.9 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.2006, allocations: 207.9 kB / 364.1 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004559/0.2051, allocations: 2.683 MB / 366.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-05/0.2052, allocations: 11.94 kB / 366.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.2054, allocations: 80 kB / 366.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001407/0.2056, allocations: 99.92 kB / 367 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003966/0.2095, allocations: 2.276 MB / 369.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01495/0.2245, allocations: 8.134 MB / 377.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003025/0.2276, allocations: 1.628 MB / 379 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2381/0.4657, allocations: 1.081 MB / 380.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003888/0.4662, allocations: 131.9 kB / 380.2 MB, free: 52.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.4662, allocations: 50.81 kB / 380.3 MB, free: 52.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 5.169e-06/0.4662, allocations: 0.75 kB / 380.3 MB, free: 52.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01422/0.4805, allocations: 6.2 MB / 386.5 MB, free: 49.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.4806, allocations: 69 kB / 386.5 MB, free: 49.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003553/0.4841, allocations: 2.151 MB / 388.7 MB, free: 49.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.4843, allocations: 46.86 kB / 388.7 MB, free: 49.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008712/0.4851, allocations: 1.102 MB / 389.8 MB, free: 48.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.4855, allocations: 462.7 kB / 390.3 MB, free: 47.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004363/0.4859, allocations: 240 kB / 390.5 MB, free: 47.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4861, allocations: 364.7 kB / 390.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.4875, allocations: 0.7556 MB / 391.6 MB, free: 47.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.4889, allocations: 1.012 MB / 392.6 MB, free: 46.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002771/0.4917, allocations: 1.861 MB / 394.5 MB, free: 45.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.4917, allocations: 5.25 kB / 394.5 MB, free: 45.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004579/0.4963, allocations: 2.766 MB / 397.3 MB, free: 44.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.4963, allocations: 7.844 kB / 397.3 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.4963, allocations: 7.875 kB / 397.3 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/0.4981, allocations: 0.7896 MB / 398.1 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.4991, allocations: 272.9 kB / 398.3 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009204/0.5083, allocations: 9.595 MB / 407.9 MB, free: 35.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.5099, allocations: 102.2 kB / 408 MB, free: 35.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.51, allocations: 51.98 kB / 408.1 MB, free: 35.59 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.00114/0.5111, allocations: 0.7355 MB / 408.8 MB, free: 34.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/0.5115, allocations: 197.6 kB / 409 MB, free: 34.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003619/0.5151, allocations: 2.488 MB / 411.5 MB, free: 32.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/0.5151, allocations: 19.94 kB / 411.5 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.5151, allocations: 7.938 kB / 411.5 MB, free: 32.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.5152, allocations: 11.97 kB / 411.5 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007425/0.5226, allocations: 4.936 MB / 416.5 MB, free: 27.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.5226, allocations: 6.938 kB / 416.5 MB, free: 27.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009112/0.5235, allocations: 211.7 kB / 416.7 MB, free: 26.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001438/0.525, allocations: 0.6541 MB / 417.3 MB, free: 26.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.908e-05/0.5251, allocations: 31.97 kB / 417.4 MB, free: 26.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00753/0.5326, allocations: 8.701 MB / 426.1 MB, free: 17.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5327, allocations: 10 kB / 426.1 MB, free: 17.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005234/0.5379, allocations: 3.532 MB / 429.6 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.539, allocations: 438.5 kB / 430 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002263/0.5392, allocations: 31.98 kB / 430.1 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009141/0.5401, allocations: 83.91 kB / 430.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.5404, allocations: 109 kB / 430.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.888e-05/0.5405, allocations: 39.98 kB / 430.3 MB, free: 12.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001702/0.5422, allocations: 1.515 MB / 431.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5422, allocations: 0 / 431.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001817/0.544, allocations: 0.5261 MB / 432.3 MB, free: 10.76 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.001106/0.5452, allocations: 464.3 kB / 432.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003771/0.5489, allocations: 2.381 MB / 435.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.549, allocations: 0 / 435.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002147/0.5511, allocations: 1.605 MB / 436.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/0.5532, allocations: 438.2 kB / 437.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007684/0.5609, allocations: 5.128 MB / 442.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/0.5627, allocations: 1.947 MB / 444.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.564, allocations: 387.7 kB / 444.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.5644, allocations: 131.4 kB / 444.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5645, allocations: 0 / 444.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Templates: time 0.058/0.6225, allocations: 30.12 MB / 474.9 MB, free: 60 kB / 350.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 -s cvode -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