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.0008945/0.0008946, allocations: 90.69 kB / 17.31 MB, free: 5.938 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.0009664/0.0009664, allocations: 179.2 kB / 18.22 MB, free: 5.395 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.271/1.271, allocations: 223.3 MB / 242.3 MB, free: 14.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002411, allocations: 12.55 kB / 302.1 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07146/0.07172, allocations: 50.41 MB / 352.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.008699/0.08043, allocations: 9.073 MB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005346/0.0858, allocations: 3.491 MB / 365.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008798/0.08669, allocations: 39.81 kB / 365.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.08814, allocations: 0.5905 MB / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001865/0.09001, allocations: 0.7383 MB / 366.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009212/0.09095, allocations: 419.4 kB / 366.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002826/0.09378, allocations: 3.009 MB / 369.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001657/0.09545, allocations: 1.529 MB / 371.4 MB, free: 420 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.138/0.2334, allocations: 0.9102 MB / 372.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.2353, allocations: 1.363 MB / 373.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002961/0.2356, allocations: 134.9 kB / 373.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008371/0.2365, allocations: 420 kB / 374.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000753/0.2373, allocations: 0.7824 MB / 375 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.2384, allocations: 1.288 MB / 376.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002906/0.2413, allocations: 3.397 MB / 379.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2413, allocations: 2.344 kB / 379.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2413, allocations: 0 / 379.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.103e-05/0.2413, allocations: 3.938 kB / 379.7 MB, free: 11.03 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.004367/0.2457, allocations: 2.69 MB / 382.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.2457, allocations: 13.25 kB / 382.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007039/0.2465, allocations: 330.3 kB / 382.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.2486, allocations: 1.654 MB / 384.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.2487, allocations: 147.5 kB / 384.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.249, allocations: 209.2 kB / 384.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004128/0.2532, allocations: 2.712 MB / 387.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.488e-05/0.2532, allocations: 10.77 kB / 387.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000201/0.2534, allocations: 80.66 kB / 387.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.2535, allocations: 94.16 kB / 387.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003723/0.2573, allocations: 2.305 MB / 389.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.2675, allocations: 8.284 MB / 398.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.2701, allocations: 1.648 MB / 399.8 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.2719, allocations: 1.103 MB / 400.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002199/0.2722, allocations: 121.8 kB / 401 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.2722, allocations: 49.44 kB / 401.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.725e-06/0.2722, allocations: 0 / 401.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01262/0.2848, allocations: 6.508 MB / 407.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.2849, allocations: 72.72 kB / 407.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.2876, allocations: 2.152 MB / 409.8 MB, free: 7.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.2877, allocations: 50.8 kB / 409.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007835/0.2885, allocations: 1.109 MB / 411 MB, free: 6.285 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.2888, allocations: 459.6 kB / 411.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.289, allocations: 109.7 kB / 411.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.2891, allocations: 361.9 kB / 411.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.2905, allocations: 0.773 MB / 412.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.292, allocations: 1.026 MB / 413.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002923/0.2949, allocations: 1.891 MB / 415.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.2949, allocations: 4 kB / 415.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005055/0.3, allocations: 2.788 MB / 418.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3, allocations: 10.19 kB / 418.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.3, allocations: 4 kB / 418.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/0.302, allocations: 0.7853 MB / 419.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.3032, allocations: 275.3 kB / 419.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.314, allocations: 8.761 MB / 428.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.3151, allocations: 99.95 kB / 428.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.3152, allocations: 51.98 kB / 428.4 MB, free: 4.586 MB / 334.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.001018/0.3162, allocations: 0.742 MB / 429.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.3166, allocations: 201.3 kB / 429.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00455/0.3211, allocations: 2.517 MB / 431.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/0.3211, allocations: 16 kB / 431.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.517e-06/0.3212, allocations: 4 kB / 431.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.3212, allocations: 11.97 kB / 431.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008067/0.3293, allocations: 4.967 MB / 436.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.3293, allocations: 3.984 kB / 436.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.3303, allocations: 224.5 kB / 437 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.3321, allocations: 0.6536 MB / 437.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.3322, allocations: 27.98 kB / 437.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008302/0.3405, allocations: 7.937 MB / 445.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3405, allocations: 1.594 kB / 445.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005785/0.3463, allocations: 3.572 MB / 449.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.347, allocations: 438.6 kB / 449.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002409/0.3472, allocations: 35.92 kB / 449.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.3482, allocations: 92.69 kB / 449.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.3485, allocations: 107.1 kB / 449.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.315e-05/0.3486, allocations: 39.98 kB / 449.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001917/0.3505, allocations: 1.512 MB / 451.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3505, allocations: 0 / 451.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001468/0.352, allocations: 0.5325 MB / 452 MB, free: 12.51 MB / 366.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.001102/0.3531, allocations: 465.8 kB / 452.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004027/0.3572, allocations: 2.405 MB / 454.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3572, allocations: 1.25 kB / 454.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.3597, allocations: 1.622 MB / 456.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.3619, allocations: 436.8 kB / 456.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007882/0.3698, allocations: 6.332 MB / 463.2 MB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.3714, allocations: 1.943 MB / 465.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004576/0.3719, allocations: 139.4 kB / 465.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3719, allocations: 0 / 465.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of Templates: time 0.06741/0.4393, allocations: 63.37 MB / 0.5163 GB, free: 15.92 MB / 446.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