Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aims.ir.1.|aims.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aims.is.1.|aims.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aims.ir.1.|aims.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aims.is.1.|aims.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 104.2 kB / 17.59 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 187.4 kB / 18.51 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 50.44 kB / 301.3 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.08663, allocations: 49.44 MB / 350.7 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01288/0.09956, allocations: 11.81 MB / 362.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007403/0.107, allocations: 3.747 MB / 366.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00205/0.1091, allocations: 71.69 kB / 366.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002656/0.1118, allocations: 0.8655 MB / 367.2 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003597/0.1154, allocations: 1.091 MB / 368.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.1169, allocations: 475.4 kB / 368.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1744/0.2913, allocations: 4.214 MB / 373 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004436/0.2958, allocations: 3.282 MB / 376.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003546/0.2994, allocations: 1.899 MB / 378.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00471/0.3041, allocations: 2.326 MB / 380.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001909/0.3061, allocations: 0.4942 MB / 381 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00273/0.3088, allocations: 0.5859 MB / 381.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002553/0.3114, allocations: 1.397 MB / 383 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004964/0.3164, allocations: 2.203 MB / 385.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006748/0.3232, allocations: 6.493 MB / 391.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3232, allocations: 3.938 kB / 391.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3232, allocations: 0 / 391.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001701/0.3234, allocations: 3.938 kB / 391.7 MB, free: 5.051 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01165/0.3351, allocations: 4.297 MB / 396 MB, free: 2.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.3351, allocations: 9.594 kB / 396 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.3364, allocations: 438.1 kB / 396.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.3409, allocations: 2.326 MB / 398.7 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.3411, allocations: 233.3 kB / 399 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007158/0.3418, allocations: 308.7 kB / 399.3 MB, free: 276 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.352, allocations: 4.375 MB / 403.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.3521, allocations: 8 kB / 403.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000418/0.3526, allocations: 127 kB / 403.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.3527, allocations: 137.5 kB / 403.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007955/0.3607, allocations: 3.77 MB / 407.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02836/0.3891, allocations: 13.53 MB / 421.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004178/0.3933, allocations: 2.895 MB / 424.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00323/0.3966, allocations: 1.681 MB / 425.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003499/0.397, allocations: 129 kB / 425.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.397, allocations: 55.88 kB / 426 MB, free: 5.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=164): time 4.589e-06/0.397, allocations: 0 / 426 MB, free: 5.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=180): time 0.0205/0.4176, allocations: 8.984 MB / 434.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.4177, allocations: 69.41 kB / 435 MB, free: 12.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004597/0.4223, allocations: 2.353 MB / 437.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002754/0.4226, allocations: 61.7 kB / 437.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.4238, allocations: 1.464 MB / 438.9 MB, free: 8.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006964/0.4245, allocations: 0.6049 MB / 439.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007285/0.4252, allocations: 367.3 kB / 439.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.4253, allocations: 305.1 kB / 440.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/0.4272, allocations: 1.128 MB / 441.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002197/0.4294, allocations: 1.569 MB / 442.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004176/0.4336, allocations: 2.791 MB / 445.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.4336, allocations: 4 kB / 445.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006726/0.4404, allocations: 3.585 MB / 449.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.4404, allocations: 12.03 kB / 449.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/0.4405, allocations: 16 kB / 449.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002199/0.4427, allocations: 0.8022 MB / 450.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001976/0.4447, allocations: 464.6 kB / 450.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/0.4567, allocations: 11.18 MB / 461.7 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/0.4593, allocations: 119.8 kB / 461.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004905/0.4599, allocations: 75.98 kB / 461.9 MB, free: 0.8711 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003103/0.463, allocations: 1.102 MB / 463 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009489/0.4639, allocations: 245 kB / 463.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007016/0.471, allocations: 3.301 MB / 466.5 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.471, allocations: 16 kB / 466.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/0.4711, allocations: 8 kB / 466.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.04e-05/0.4711, allocations: 7.969 kB / 466.6 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.4868, allocations: 6.882 MB / 473.4 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/0.4869, allocations: 0 / 473.4 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/0.4886, allocations: 302.2 kB / 473.7 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002869/0.4915, allocations: 0.9276 MB / 474.7 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000319/0.4918, allocations: 47.95 kB / 474.7 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01555/0.5074, allocations: 14.62 MB / 489.3 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.5074, allocations: 0 / 489.3 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009053/0.5165, allocations: 4.872 MB / 494.2 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001964/0.5185, allocations: 0.5643 MB / 494.8 MB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009678/0.5195, allocations: 36 kB / 494.8 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/0.5217, allocations: 123.9 kB / 494.9 MB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004952/0.5222, allocations: 157.2 kB / 495.1 MB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/0.5224, allocations: 51.98 kB / 495.1 MB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003505/0.5259, allocations: 1.625 MB / 496.8 MB, free: 12.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5259, allocations: 0 / 496.8 MB, free: 12.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003425/0.5294, allocations: 0.7031 MB / 497.5 MB, free: 12.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.0005919/0.53, allocations: 213 kB / 497.7 MB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009756/0.5397, allocations: 4.858 MB / 0.4907 GB, free: 7.164 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.5398, allocations: 0 / 0.4907 GB, free: 7.164 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004146/0.5439, allocations: 2.499 MB / 0.4932 GB, free: 4.586 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004157/0.5481, allocations: 0.7114 MB / 0.4939 GB, free: 3.887 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.5606, allocations: 6.85 MB / 0.5006 GB, free: 13.01 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002579/0.5632, allocations: 2.47 MB / 0.503 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008122/0.564, allocations: 175.4 kB / 0.5032 GB, free: 10.34 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.564, allocations: 0 / 0.5032 GB, free: 10.34 MB / 430.1 MB Notification: Performance of Templates: time 0.2758/0.8398, allocations: 167.5 MB / 0.6668 GB, free: 22.3 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches