Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 118.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2432, allocations: 50.54 MB / 409.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.01068/0.2539, allocations: 9.738 MB / 419 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006339/0.2603, allocations: 3.085 MB / 422.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.2616, allocations: 51.75 kB / 422.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.2635, allocations: 0.6287 MB / 422.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.2657, allocations: 0.7491 MB / 423.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008253/0.2665, allocations: 387.4 kB / 423.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002441/0.269, allocations: 2.428 MB / 426.3 MB, free: 488 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.2708, allocations: 1.755 MB / 428.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.2721, allocations: 1.078 MB / 429.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001477/0.2736, allocations: 1.315 MB / 430.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000332/0.2739, allocations: 280 kB / 430.7 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006668/0.2746, allocations: 383.8 kB / 431.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006513/0.2753, allocations: 0.7713 MB / 431.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001155/0.2764, allocations: 1.276 MB / 433.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003713/0.2802, allocations: 3.674 MB / 436.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2802, allocations: 0 / 436.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.2802, allocations: 8 kB / 436.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.418e-05/0.2802, allocations: 0 / 436.8 MB, free: 5.871 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.004513/0.2848, allocations: 2.655 MB / 439.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2848, allocations: 8.031 kB / 439.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007415/0.2856, allocations: 283.4 kB / 439.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.2875, allocations: 1.366 MB / 441.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.2877, allocations: 148.1 kB / 441.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002681/0.288, allocations: 195.9 kB / 441.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003671/0.2916, allocations: 2.419 MB / 443.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.161e-05/0.2917, allocations: 7.984 kB / 443.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.2919, allocations: 76 kB / 444 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.093e-05/0.292, allocations: 91.62 kB / 444.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002981/0.295, allocations: 1.955 MB / 446 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.3058, allocations: 7.795 MB / 453.8 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.3074, allocations: 1.227 MB / 455.1 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/0.3091, allocations: 0.976 MB / 456 MB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.3093, allocations: 114.1 kB / 456.1 MB, free: 2.109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.3094, allocations: 43.56 kB / 456.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.866e-06/0.3094, allocations: 0 / 456.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.01221/0.3216, allocations: 5.896 MB / 462.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.3217, allocations: 68.34 kB / 462.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.3235, allocations: 1.306 MB / 463.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.444e-05/0.3236, allocations: 45.7 kB / 463.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006725/0.3243, allocations: 0.9575 MB / 464.5 MB, free: 9.605 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003245/0.3246, allocations: 408.5 kB / 464.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.325, allocations: 255.5 kB / 465.1 MB, free: 8.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3252, allocations: 353.9 kB / 465.4 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009212/0.3261, allocations: 0.6403 MB / 466.1 MB, free: 7.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.3272, allocations: 1 MB / 467.1 MB, free: 6.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002107/0.3294, allocations: 1.739 MB / 468.8 MB, free: 4.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.3294, allocations: 4 kB / 468.8 MB, free: 4.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003509/0.3329, allocations: 2.25 MB / 471.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.3329, allocations: 10.97 kB / 471.1 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.3329, allocations: 12 kB / 471.1 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.3341, allocations: 496.1 kB / 471.6 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.3351, allocations: 307.5 kB / 471.9 MB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006779/0.3419, allocations: 7.139 MB / 479 MB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.3433, allocations: 79.86 kB / 479.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.3435, allocations: 59.98 kB / 479.2 MB, free: 10.12 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001084/0.3446, allocations: 0.6 MB / 479.8 MB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/0.345, allocations: 159 kB / 479.9 MB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.3484, allocations: 1.972 MB / 481.9 MB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.3485, allocations: 12 kB / 481.9 MB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.3485, allocations: 4 kB / 481.9 MB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.3485, allocations: 7.969 kB / 481.9 MB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006841/0.3554, allocations: 4.117 MB / 486 MB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.3554, allocations: 4 kB / 486 MB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007942/0.3562, allocations: 184 kB / 486.2 MB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.3576, allocations: 0.5387 MB / 486.8 MB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.46e-05/0.3577, allocations: 35.92 kB / 486.8 MB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008394/0.3661, allocations: 8.762 MB / 495.5 MB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.3662, allocations: 3.938 kB / 495.6 MB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005236/0.3714, allocations: 2.864 MB / 498.4 MB, free: 6.094 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009211/0.3724, allocations: 356 kB / 498.8 MB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003903/0.3728, allocations: 36.05 kB / 498.8 MB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009521/0.3738, allocations: 71.92 kB / 498.9 MB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/0.374, allocations: 84.91 kB / 499 MB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.3741, allocations: 31.94 kB / 499 MB, free: 5.508 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001522/0.3756, allocations: 0.8958 MB / 499.9 MB, free: 4.609 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3757, allocations: 0 / 499.9 MB, free: 4.609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001737/0.3774, allocations: 447.9 kB / 0.4886 GB, free: 4.172 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (2,8,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004282/0.3778, allocations: 191 kB / 0.4888 GB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003559/0.3814, allocations: 2.232 MB / 0.491 GB, free: 1.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.3814, allocations: 4 kB / 0.491 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002197/0.3836, allocations: 1.499 MB / 0.4924 GB, free: 88 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/0.386, allocations: 423 kB / 0.4928 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007671/0.3937, allocations: 4.167 MB / 0.4969 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.3953, allocations: 1.65 MB / 0.4985 GB, free: 9.762 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001128/0.3964, allocations: 324.8 kB / 0.4988 GB, free: 9.438 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.3968, allocations: 95.42 kB / 0.4989 GB, free: 9.344 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3968, allocations: 3.938 kB / 0.4989 GB, free: 9.34 MB / 430.1 MB Notification: Performance of Templates: time 0.04167/0.4385, allocations: 24.17 MB / 0.5225 GB, free: 1.391 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches