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.0008046/0.0008046, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009287/0.0009288, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002825, allocations: 4 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09322, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.009912/0.1032, allocations: 9.122 MB / 369 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006749/0.11, allocations: 3.693 MB / 372.7 MB, free: 388 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.1115, allocations: 43.81 kB / 372.8 MB, free: 344 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1644/0.2759, allocations: 0.5801 MB / 373.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002971/0.279, allocations: 0.773 MB / 374.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.2804, allocations: 416.6 kB / 374.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004423/0.2848, allocations: 3.043 MB / 377.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002568/0.2874, allocations: 1.538 MB / 379.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00209/0.2895, allocations: 0.9277 MB / 380 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00273/0.2923, allocations: 1.368 MB / 381.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008071/0.2931, allocations: 134.8 kB / 381.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001788/0.2949, allocations: 405 kB / 381.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001393/0.2963, allocations: 0.7821 MB / 382.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002371/0.2987, allocations: 1.293 MB / 384 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00378/0.3025, allocations: 3.42 MB / 387.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3025, allocations: 1 kB / 387.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3025, allocations: 0 / 387.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001091/0.3026, allocations: 0 / 387.4 MB, free: 7.035 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.005695/0.3083, allocations: 2.721 MB / 390.2 MB, free: 5.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3084, allocations: 9.312 kB / 390.2 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.3099, allocations: 364.9 kB / 390.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002878/0.3128, allocations: 1.677 MB / 392.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.3129, allocations: 151.9 kB / 392.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003652/0.3133, allocations: 214.2 kB / 392.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004762/0.3181, allocations: 2.707 MB / 395.3 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.752e-05/0.3182, allocations: 6.344 kB / 395.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001943/0.3184, allocations: 81.75 kB / 395.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.3185, allocations: 98.48 kB / 395.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004407/0.3229, allocations: 2.297 MB / 397.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01412/0.3371, allocations: 8.289 MB / 406 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.34, allocations: 1.646 MB / 407.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.3419, allocations: 1.093 MB / 408.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002441/0.3422, allocations: 121.1 kB / 408.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.3422, allocations: 47.56 kB / 408.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.317e-06/0.3422, allocations: 7.688 kB / 408.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01355/0.3558, allocations: 6.529 MB / 415.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.3559, allocations: 72.66 kB / 415.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.3591, allocations: 2.177 MB / 417.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.3593, allocations: 49.7 kB / 417.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008122/0.3601, allocations: 1.115 MB / 418.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004089/0.3605, allocations: 454.5 kB / 419.3 MB, free: 12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.3607, allocations: 116.6 kB / 419.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3608, allocations: 359.4 kB / 419.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.3622, allocations: 0.773 MB / 420.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.3637, allocations: 1.028 MB / 421.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.3665, allocations: 1.887 MB / 423.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.545e-06/0.3666, allocations: 4 kB / 423.5 MB, free: 7.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005215/0.3718, allocations: 2.792 MB / 426.3 MB, free: 4.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.3718, allocations: 8 kB / 426.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.3719, allocations: 8 kB / 426.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/0.3739, allocations: 0.7853 MB / 427.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.3751, allocations: 279.5 kB / 427.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.3867, allocations: 8.75 MB / 436.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.3884, allocations: 102.5 kB / 436.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000246/0.3886, allocations: 59.97 kB / 436.3 MB, free: 10.61 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.00165/0.3903, allocations: 0.7465 MB / 437 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006057/0.3909, allocations: 201.5 kB / 437.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004942/0.3959, allocations: 2.528 MB / 439.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.012e-05/0.3959, allocations: 12 kB / 439.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.3959, allocations: 8 kB / 439.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.396, allocations: 7.969 kB / 439.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009681/0.4056, allocations: 4.97 MB / 444.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4057, allocations: 3.938 kB / 444.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.4067, allocations: 227.6 kB / 445 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001796/0.4086, allocations: 0.6556 MB / 445.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/0.4087, allocations: 35.98 kB / 445.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0087/0.4174, allocations: 7.934 MB / 453.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4174, allocations: 0 / 453.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006607/0.4241, allocations: 3.577 MB / 457.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.4252, allocations: 450.4 kB / 457.6 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005059/0.4257, allocations: 39.92 kB / 457.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.427, allocations: 91.91 kB / 457.7 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.4273, allocations: 100.8 kB / 457.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.4275, allocations: 39.98 kB / 457.9 MB, free: 4.445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002735/0.4302, allocations: 1.537 MB / 459.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4302, allocations: 0 / 459.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002388/0.4326, allocations: 0.5269 MB / 459.9 MB, free: 2.363 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.001248/0.4339, allocations: 455.2 kB / 460.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.4385, allocations: 2.411 MB / 462.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4386, allocations: 1.25 kB / 462.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002733/0.4413, allocations: 1.609 MB / 464.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003395/0.4447, allocations: 434.8 kB / 464.8 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.4549, allocations: 6.345 MB / 471.2 MB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002105/0.4571, allocations: 1.94 MB / 473.1 MB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006837/0.4578, allocations: 135.4 kB / 473.2 MB, free: 5 MB / 382.1 MB Notification: Performance of SimCode: time 6.442e-06/0.4578, allocations: 0 / 473.2 MB, free: 5 MB / 382.1 MB Notification: Performance of Templates: time 0.08003/0.5378, allocations: 63.81 MB / 0.5245 GB, free: 5.219 MB / 446.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/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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches