Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007673/0.0007674, allocations: 93.92 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008992/0.0008992, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.122/1.122, allocations: 227.7 MB / 246.8 MB, free: 9.664 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001765/0.0001765, allocations: 11.97 kB / 307.7 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0716/0.07179, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.008058/0.07987, allocations: 9.118 MB / 368.4 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004238/0.08412, allocations: 3.693 MB / 372.1 MB, free: 224 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003945/0.08453, allocations: 43.81 kB / 372.1 MB, free: 180 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1271/0.2117, allocations: 0.5771 MB / 372.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002238/0.214, allocations: 0.7801 MB / 373.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.215, allocations: 422.7 kB / 373.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002996/0.218, allocations: 3.037 MB / 376.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.2196, allocations: 1.537 MB / 378.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.221, allocations: 0.9314 MB / 379.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001916/0.2229, allocations: 1.363 MB / 380.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002844/0.2232, allocations: 135.4 kB / 380.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008856/0.2241, allocations: 404 kB / 381.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006602/0.2248, allocations: 0.7862 MB / 382.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009979/0.2258, allocations: 1.29 MB / 383.3 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002685/0.2285, allocations: 4.05 MB / 387.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2285, allocations: 3.984 kB / 387.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2285, allocations: 0 / 387.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.2285, allocations: 0 / 387.4 MB, free: 6.582 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.003712/0.2322, allocations: 2.715 MB / 390.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.2323, allocations: 9.25 kB / 390.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008593/0.2331, allocations: 366.3 kB / 390.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.235, allocations: 1.677 MB / 392.2 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.374e-05/0.2351, allocations: 151.9 kB / 392.3 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002658/0.2353, allocations: 215.2 kB / 392.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003471/0.2388, allocations: 2.711 MB / 395.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.448e-05/0.2389, allocations: 6.344 kB / 395.2 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/0.239, allocations: 83.72 kB / 395.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.413e-05/0.2391, allocations: 93.77 kB / 395.4 MB, free: 1.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003008/0.2422, allocations: 2.299 MB / 397.7 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.2523, allocations: 8.28 MB / 406 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/0.2549, allocations: 1.654 MB / 407.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/0.2566, allocations: 1.1 MB / 408.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002048/0.2568, allocations: 125.4 kB / 408.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.2568, allocations: 43.56 kB / 408.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.364e-06/0.2568, allocations: 4 kB / 408.9 MB, free: 6.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01103/0.2679, allocations: 6.528 MB / 415.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.2679, allocations: 64.72 kB / 415.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.2703, allocations: 2.181 MB / 417.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.487e-05/0.2704, allocations: 48.83 kB / 417.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007099/0.2711, allocations: 1.112 MB / 418.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/0.2714, allocations: 461.8 kB / 419.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.2716, allocations: 109.7 kB / 419.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2717, allocations: 361.9 kB / 419.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.2729, allocations: 0.7691 MB / 420.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.2742, allocations: 1.027 MB / 421.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002548/0.2768, allocations: 1.892 MB / 423.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.2768, allocations: 3.469 kB / 423.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004361/0.2812, allocations: 2.796 MB / 426.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2812, allocations: 8 kB / 426.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.2812, allocations: 8 kB / 426.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.2829, allocations: 0.7892 MB / 427 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009664/0.2839, allocations: 279.5 kB / 427.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009634/0.2935, allocations: 8.746 MB / 436.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009141/0.2944, allocations: 104.1 kB / 436.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.2946, allocations: 51.98 kB / 436.2 MB, free: 10.06 MB / 350.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.0009727/0.2955, allocations: 0.7511 MB / 437 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002797/0.2958, allocations: 201.5 kB / 437.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003996/0.2998, allocations: 2.52 MB / 439.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.2999, allocations: 16 kB / 439.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.2999, allocations: 4 kB / 439.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.2999, allocations: 7.969 kB / 439.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007038/0.3069, allocations: 4.979 MB / 444.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3069, allocations: 4 kB / 444.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008877/0.3078, allocations: 219.6 kB / 444.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.3093, allocations: 0.6512 MB / 445.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.184e-05/0.3094, allocations: 39.19 kB / 445.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007449/0.3169, allocations: 7.946 MB / 453.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3169, allocations: 3.938 kB / 453.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00511/0.322, allocations: 3.569 MB / 457.1 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005903/0.3226, allocations: 450.4 kB / 457.6 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.3228, allocations: 39.92 kB / 457.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008543/0.3237, allocations: 91.91 kB / 457.7 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.3239, allocations: 108.8 kB / 457.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.324, allocations: 35.98 kB / 457.8 MB, free: 3.887 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001716/0.3257, allocations: 1.54 MB / 459.4 MB, free: 2.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3257, allocations: 0 / 459.4 MB, free: 2.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001381/0.3271, allocations: 0.5195 MB / 459.9 MB, free: 1.805 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.0009256/0.328, allocations: 456.1 kB / 460.3 MB, free: 1.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00352/0.3316, allocations: 2.4 MB / 462.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3316, allocations: 4 kB / 462.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.3338, allocations: 1.61 MB / 464.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.3357, allocations: 444.8 kB / 464.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006726/0.3425, allocations: 6.292 MB / 471.1 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001396/0.3439, allocations: 1.955 MB / 473 MB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009466/0.3448, allocations: 395.7 kB / 473.4 MB, free: 4.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.3452, allocations: 127.4 kB / 473.5 MB, free: 4.102 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3452, allocations: 0 / 473.5 MB, free: 4.102 MB / 382.1 MB Notification: Performance of Templates: time 0.03822/0.3834, allocations: 28.45 MB / 0.4902 GB, free: 7.883 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches