Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 64.83 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01284/0.1177, allocations: 11.86 MB / 370.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1809/0.2986, allocations: 3.825 MB / 374.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002108/0.3008, allocations: 74.75 kB / 374.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003002/0.3038, allocations: 0.8691 MB / 375.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004051/0.3079, allocations: 1.085 MB / 376.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.3095, allocations: 0.4972 MB / 377.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005814/0.3154, allocations: 4.248 MB / 381.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00591/0.3213, allocations: 3.297 MB / 384.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004056/0.3254, allocations: 1.915 MB / 386.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004846/0.3303, allocations: 2.334 MB / 388.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001766/0.332, allocations: 0.4939 MB / 389.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002694/0.3348, allocations: 0.5959 MB / 390 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002777/0.3376, allocations: 1.396 MB / 391.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006209/0.3438, allocations: 2.218 MB / 393.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008723/0.3525, allocations: 6.561 MB / 400.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3526, allocations: 7.875 kB / 400.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3526, allocations: 0 / 400.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000229/0.3528, allocations: 2.5 kB / 400.2 MB, free: 14.62 MB / 318.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.01312/0.3659, allocations: 4.316 MB / 404.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.366, allocations: 8.031 kB / 404.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.3676, allocations: 472 kB / 405 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004748/0.3723, allocations: 2.41 MB / 407.4 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.3725, allocations: 236.7 kB / 407.6 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005026/0.373, allocations: 307.8 kB / 407.9 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00728/0.3803, allocations: 4.383 MB / 412.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.92e-05/0.3804, allocations: 4 kB / 412.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/0.3807, allocations: 124 kB / 412.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.3808, allocations: 126 kB / 412.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00653/0.3874, allocations: 3.784 MB / 416.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02309/0.4105, allocations: 13.37 MB / 429.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003397/0.4139, allocations: 2.901 MB / 432.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002513/0.4165, allocations: 1.677 MB / 434.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.4168, allocations: 132.7 kB / 434.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.4168, allocations: 47.88 kB / 434.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=164): time 3.526e-06/0.4168, allocations: 4 kB / 434.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=180): time 0.01762/0.4345, allocations: 8.993 MB / 443.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.4345, allocations: 69.41 kB / 443.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00371/0.4383, allocations: 2.374 MB / 445.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002049/0.4385, allocations: 57.7 kB / 445.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009934/0.4395, allocations: 1.471 MB / 447.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/0.44, allocations: 0.6117 MB / 448 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005763/0.4406, allocations: 359.3 kB / 448.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.544e-05/0.4407, allocations: 313 kB / 448.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.4423, allocations: 1.117 MB / 449.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.4442, allocations: 1.574 MB / 451.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003592/0.4478, allocations: 2.78 MB / 454.2 MB, free: 8.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/0.4478, allocations: 8 kB / 454.2 MB, free: 8.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006005/0.4538, allocations: 3.588 MB / 457.7 MB, free: 4.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.4539, allocations: 12 kB / 457.8 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.4539, allocations: 12.5 kB / 457.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/0.4559, allocations: 0.8136 MB / 458.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.4577, allocations: 463.2 kB / 459 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.4681, allocations: 11.17 MB / 470.2 MB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/0.4703, allocations: 123.8 kB / 470.3 MB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/0.4706, allocations: 79.98 kB / 470.4 MB, free: 7.473 MB / 382.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.00201/0.4726, allocations: 1.094 MB / 471.5 MB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006214/0.4733, allocations: 249 kB / 471.7 MB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005419/0.4787, allocations: 3.301 MB / 475 MB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.4787, allocations: 16 kB / 475.1 MB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.4787, allocations: 8 kB / 475.1 MB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.4788, allocations: 15.94 kB / 475.1 MB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.4914, allocations: 6.852 MB / 481.9 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.4915, allocations: 4 kB / 481.9 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.4928, allocations: 299.8 kB / 482.2 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002406/0.4952, allocations: 0.9275 MB / 483.2 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/0.4954, allocations: 39.98 kB / 483.2 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0134/0.5088, allocations: 14.6 MB / 497.8 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.5089, allocations: 4 kB / 497.8 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007784/0.5167, allocations: 4.864 MB / 0.4909 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/0.5186, allocations: 0.5643 MB / 0.4914 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000451/0.519, allocations: 43.94 kB / 0.4915 GB, free: 5.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/0.5204, allocations: 119.9 kB / 0.4916 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004317/0.5208, allocations: 157.7 kB / 0.4917 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/0.521, allocations: 51.98 kB / 0.4918 GB, free: 5.051 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002724/0.5237, allocations: 1.641 MB / 0.4934 GB, free: 3.395 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5237, allocations: 0 / 0.4934 GB, free: 3.395 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002871/0.5266, allocations: 0.7031 MB / 0.4941 GB, free: 2.691 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.0005376/0.5272, allocations: 207 kB / 0.4943 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005922/0.5331, allocations: 3.598 MB / 0.4978 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5331, allocations: 0 / 0.4978 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003568/0.5367, allocations: 2.503 MB / 0.5002 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.5403, allocations: 0.7138 MB / 0.5009 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/0.5512, allocations: 6.758 MB / 0.5075 GB, free: 4.668 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002359/0.5536, allocations: 2.541 MB / 0.51 GB, free: 2.098 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002753/0.5565, allocations: 0.5906 MB / 0.5106 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005629/0.5571, allocations: 159.4 kB / 0.5107 GB, free: 1.344 MB / 430.1 MB Notification: Performance of SimCode: time 7.42e-07/0.5571, allocations: 4 kB / 0.5107 GB, free: 1.34 MB / 430.1 MB Notification: Performance of Templates: time 0.2295/0.7865, allocations: 39.96 MB / 0.5498 GB, free: 137.1 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches