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.001599/0.001599, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001996/0.001996, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 63.95 kB / 306.9 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.08995, allocations: 50.53 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01192/0.1019, allocations: 9.694 MB / 367.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007254/0.1092, allocations: 3.763 MB / 370.9 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.1109, allocations: 51.81 kB / 371 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1666/0.2774, allocations: 0.6599 MB / 371.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003958/0.2814, allocations: 0.8683 MB / 372.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001497/0.283, allocations: 477.7 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.2869, allocations: 2.648 MB / 375.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002336/0.2892, allocations: 1.886 MB / 377.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.2913, allocations: 1.192 MB / 378.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002447/0.2938, allocations: 1.56 MB / 380.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005598/0.2944, allocations: 304.9 kB / 380.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001424/0.2958, allocations: 0.5456 MB / 381.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.2969, allocations: 0.9863 MB / 382.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002033/0.2989, allocations: 1.489 MB / 383.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004141/0.3031, allocations: 4.259 MB / 387.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3031, allocations: 0 / 387.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3031, allocations: 0 / 387.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.279e-05/0.3032, allocations: 1.188 kB / 387.8 MB, free: 6.062 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.006555/0.3097, allocations: 3.18 MB / 391 MB, free: 3.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3098, allocations: 9.531 kB / 391 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.3113, allocations: 356.9 kB / 391.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002944/0.3142, allocations: 1.673 MB / 393.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.3144, allocations: 153.6 kB / 393.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004143/0.3148, allocations: 215.9 kB / 393.4 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004752/0.3196, allocations: 2.689 MB / 396.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.387e-05/0.3197, allocations: 10.56 kB / 396.1 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.3198, allocations: 83.94 kB / 396.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.32, allocations: 98.62 kB / 396.3 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003612/0.3236, allocations: 2.275 MB / 398.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0133/0.3369, allocations: 8.24 MB / 406.8 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002939/0.3399, allocations: 1.626 MB / 408.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/0.3418, allocations: 1.088 MB / 409.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/0.342, allocations: 120.9 kB / 409.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3421, allocations: 47.56 kB / 409.7 MB, free: 4.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.185e-06/0.3421, allocations: 4 kB / 409.7 MB, free: 4.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01477/0.3569, allocations: 6.461 MB / 416.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.357, allocations: 64.72 kB / 416.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003632/0.3606, allocations: 2.181 MB / 418.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.3608, allocations: 45.7 kB / 418.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009062/0.3617, allocations: 1.118 MB / 419.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/0.3621, allocations: 456.2 kB / 420 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.3625, allocations: 246.3 kB / 420.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3627, allocations: 361.9 kB / 420.6 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.364, allocations: 0.7612 MB / 421.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.3655, allocations: 1.013 MB / 422.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.3685, allocations: 1.863 MB / 424.2 MB, free: 5.855 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.3685, allocations: 4 kB / 424.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005142/0.3737, allocations: 2.762 MB / 427 MB, free: 3.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.3737, allocations: 8 kB / 427 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.3737, allocations: 4 kB / 427 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00198/0.3757, allocations: 0.7966 MB / 427.8 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.3769, allocations: 263.6 kB / 428.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.3892, allocations: 9.604 MB / 437.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.3908, allocations: 91.97 kB / 437.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.3911, allocations: 51.98 kB / 437.8 MB, free: 8 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.001595/0.3927, allocations: 0.7433 MB / 438.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006145/0.3933, allocations: 205.4 kB / 438.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004791/0.3981, allocations: 2.489 MB / 441.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.74e-05/0.3982, allocations: 19.98 kB / 441.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.028e-05/0.3982, allocations: 4 kB / 441.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.783e-05/0.3982, allocations: 7.984 kB / 441.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00941/0.4077, allocations: 4.945 MB / 446.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4077, allocations: 0 / 446.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.4088, allocations: 223.8 kB / 446.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001804/0.4106, allocations: 0.6634 MB / 447.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.4107, allocations: 36.03 kB / 447.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009559/0.4203, allocations: 8.723 MB / 455.9 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4203, allocations: 0 / 455.9 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00675/0.4271, allocations: 3.535 MB / 459.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.4283, allocations: 446.3 kB / 459.8 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007085/0.429, allocations: 31.98 kB / 459.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.4306, allocations: 87.42 kB / 460 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003424/0.4309, allocations: 104.8 kB / 460.1 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.4311, allocations: 35.98 kB / 460.1 MB, free: 1.148 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003168/0.4342, allocations: 1.54 MB / 461.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4343, allocations: 0 / 461.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002953/0.4372, allocations: 0.5195 MB / 462.1 MB, free: 15.07 MB / 382.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.001471/0.4387, allocations: 465.3 kB / 462.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006248/0.445, allocations: 2.869 MB / 465.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.445, allocations: 0 / 465.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002798/0.4478, allocations: 1.594 MB / 467.1 MB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/0.4508, allocations: 447.3 kB / 467.5 MB, free: 9.758 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009153/0.4599, allocations: 5.21 MB / 472.7 MB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002133/0.4621, allocations: 1.951 MB / 474.7 MB, free: 2.527 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001534/0.4637, allocations: 399.7 kB / 475.1 MB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005291/0.4642, allocations: 131.4 kB / 475.2 MB, free: 2.004 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4642, allocations: 0 / 475.2 MB, free: 2.004 MB / 382.1 MB Notification: Performance of Templates: time 0.05562/0.5198, allocations: 30.18 MB / 0.4935 GB, free: 4.078 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