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.00164/0.001641, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002151/0.002151, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.88 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2498, allocations: 50.55 MB / 410 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01124/0.2611, allocations: 9.698 MB / 419.7 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00763/0.2688, allocations: 3.759 MB / 423.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.2704, allocations: 47.81 kB / 423.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.2727, allocations: 0.6676 MB / 424.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003297/0.276, allocations: 0.8699 MB / 425 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.2777, allocations: 475.1 kB / 425.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003828/0.2816, allocations: 2.662 MB / 428.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.2843, allocations: 1.881 MB / 430 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002027/0.2864, allocations: 1.195 MB / 431.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002721/0.2891, allocations: 1.514 MB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008733/0.29, allocations: 308 kB / 433 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.2917, allocations: 0.5465 MB / 433.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.2932, allocations: 1.028 MB / 434.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002375/0.2956, allocations: 1.485 MB / 436.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005216/0.3008, allocations: 4.311 MB / 440.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3008, allocations: 0 / 440.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3009, allocations: 0 / 440.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001072/0.301, allocations: 0 / 440.4 MB, free: 3.102 MB / 350.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.006616/0.3076, allocations: 3.181 MB / 443.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3077, allocations: 16.03 kB / 443.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.3088, allocations: 361.1 kB / 444 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002941/0.3118, allocations: 1.72 MB / 445.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.312, allocations: 148 kB / 445.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003509/0.3123, allocations: 207.9 kB / 446 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004532/0.3169, allocations: 2.694 MB / 448.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.163e-05/0.3169, allocations: 7.906 kB / 448.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.3171, allocations: 79.98 kB / 448.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001157/0.3173, allocations: 99.92 kB / 448.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003794/0.3211, allocations: 2.283 MB / 451.2 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01351/0.3346, allocations: 8.135 MB / 459.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002986/0.3376, allocations: 1.628 MB / 460.9 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.3396, allocations: 1.105 MB / 462 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002682/0.3399, allocations: 126 kB / 462.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.34, allocations: 47.56 kB / 462.2 MB, free: 12.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.998e-06/0.34, allocations: 0 / 462.2 MB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01353/0.3535, allocations: 6.456 MB / 468.7 MB, free: 6.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.3536, allocations: 64.72 kB / 468.7 MB, free: 6.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.3571, allocations: 2.181 MB / 470.9 MB, free: 3.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002327/0.3574, allocations: 45.7 kB / 471 MB, free: 3.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008239/0.3582, allocations: 1.123 MB / 472.1 MB, free: 2.699 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005111/0.3587, allocations: 453.4 kB / 472.5 MB, free: 2.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004871/0.3592, allocations: 243.4 kB / 472.8 MB, free: 2.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3594, allocations: 365.9 kB / 473.1 MB, free: 1.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.3608, allocations: 0.7613 MB / 473.9 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.3622, allocations: 1.013 MB / 474.9 MB, free: 15.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.3651, allocations: 1.865 MB / 476.8 MB, free: 13.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.3652, allocations: 4 kB / 476.8 MB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005263/0.3704, allocations: 2.761 MB / 479.5 MB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.3705, allocations: 12.25 kB / 479.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.3705, allocations: 4 kB / 479.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.3726, allocations: 0.785 MB / 480.3 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.3738, allocations: 267.6 kB / 480.6 MB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.3857, allocations: 9.594 MB / 490.2 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.3872, allocations: 95.89 kB / 490.3 MB, free: 0 / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/0.3875, allocations: 48.05 kB / 490.3 MB, free: 15.95 MB / 414.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.001424/0.3889, allocations: 0.7472 MB / 491.1 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005468/0.3895, allocations: 205.5 kB / 491.3 MB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004631/0.3941, allocations: 2.489 MB / 493.8 MB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.871e-05/0.3942, allocations: 15.98 kB / 493.8 MB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.246e-05/0.3942, allocations: 11.94 kB / 493.8 MB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3942, allocations: 3.984 kB / 493.8 MB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009406/0.4037, allocations: 4.949 MB / 498.7 MB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.4037, allocations: 0 / 498.7 MB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.4048, allocations: 215.7 kB / 499 MB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/0.4066, allocations: 0.6547 MB / 499.6 MB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001421/0.4068, allocations: 35.97 kB / 499.6 MB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009752/0.4166, allocations: 8.715 MB / 0.4964 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.4166, allocations: 3.938 kB / 0.4964 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006768/0.4234, allocations: 3.536 MB / 0.4999 GB, free: 9.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.4245, allocations: 446.4 kB / 0.5003 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005087/0.425, allocations: 31.98 kB / 0.5004 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.4263, allocations: 83.97 kB / 0.5004 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.4266, allocations: 104.8 kB / 0.5005 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.4267, allocations: 43.92 kB / 0.5006 GB, free: 9.062 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002713/0.4295, allocations: 1.536 MB / 0.5021 GB, free: 7.504 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.4295, allocations: 0 / 0.5021 GB, free: 7.504 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002229/0.4317, allocations: 0.5312 MB / 0.5026 GB, free: 6.973 MB / 430.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.001276/0.433, allocations: 450.5 kB / 0.503 GB, free: 6.641 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004736/0.4378, allocations: 2.384 MB / 0.5054 GB, free: 4.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4378, allocations: 0 / 0.5054 GB, free: 4.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002658/0.4405, allocations: 1.606 MB / 0.5069 GB, free: 2.562 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/0.4432, allocations: 455.3 kB / 0.5074 GB, free: 2.125 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008726/0.452, allocations: 5.194 MB / 0.5124 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/0.4538, allocations: 1.939 MB / 0.5143 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006091/0.4544, allocations: 143.4 kB / 0.5145 GB, free: 10.77 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4545, allocations: 0 / 0.5145 GB, free: 10.77 MB / 446.1 MB Notification: Performance of Templates: time 0.2826/0.7371, allocations: 64.38 MB / 0.5773 GB, free: 98.37 MB / 462.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