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.001156/0.001156, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 197.2 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.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2535, allocations: 50.54 MB / 409.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01376/0.2673, allocations: 11.86 MB / 421.1 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007371/0.2748, allocations: 3.818 MB / 424.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001715/0.2765, allocations: 75.69 kB / 425 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.2786, allocations: 0.8743 MB / 425.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002837/0.2814, allocations: 1.087 MB / 427 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.2826, allocations: 0.4954 MB / 427.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004652/0.2873, allocations: 4.245 MB / 431.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003728/0.291, allocations: 3.289 MB / 435 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002658/0.2937, allocations: 1.912 MB / 436.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.297, allocations: 2.335 MB / 439.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007173/0.2977, allocations: 0.4922 MB / 439.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.2989, allocations: 0.5936 MB / 440.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001217/0.3001, allocations: 1.391 MB / 441.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.3025, allocations: 2.225 MB / 443.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007003/0.3095, allocations: 6.591 MB / 450.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.3096, allocations: 0 / 450.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3096, allocations: 0 / 450.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002062/0.3098, allocations: 0 / 450.5 MB, free: 8.238 MB / 366.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.01089/0.3207, allocations: 4.419 MB / 455 MB, free: 3.746 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.3208, allocations: 8.031 kB / 455 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00159/0.3224, allocations: 494.2 kB / 455.4 MB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004413/0.3268, allocations: 2.431 MB / 457.9 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.327, allocations: 230.2 kB / 458.1 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004522/0.3274, allocations: 307.9 kB / 458.4 MB, free: 252 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007351/0.3348, allocations: 4.373 MB / 462.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.648e-05/0.3349, allocations: 7.953 kB / 462.8 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/0.3352, allocations: 128 kB / 462.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/0.3353, allocations: 137.9 kB / 463 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006228/0.3416, allocations: 3.775 MB / 466.8 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02211/0.3637, allocations: 13.41 MB / 480.2 MB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/0.3673, allocations: 2.903 MB / 483.1 MB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002663/0.37, allocations: 1.68 MB / 484.8 MB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002732/0.3702, allocations: 122.4 kB / 484.9 MB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.3703, allocations: 51.88 kB / 485 MB, free: 5.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.537e-06/0.3703, allocations: 4 kB / 485 MB, free: 5.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01818/0.3885, allocations: 9.04 MB / 494 MB, free: 11.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.3886, allocations: 73.41 kB / 494.1 MB, free: 11.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003893/0.3925, allocations: 2.378 MB / 496.5 MB, free: 9.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/0.3927, allocations: 57.7 kB / 496.5 MB, free: 9.242 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.3939, allocations: 1.509 MB / 498 MB, free: 7.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005008/0.3944, allocations: 0.6313 MB / 498.7 MB, free: 7.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006518/0.395, allocations: 367.5 kB / 499 MB, free: 6.719 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3952, allocations: 301.1 kB / 499.3 MB, free: 6.422 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.3969, allocations: 1.124 MB / 0.4887 GB, free: 5.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.399, allocations: 1.578 MB / 0.4903 GB, free: 3.535 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003833/0.4028, allocations: 2.788 MB / 0.493 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4029, allocations: 4 kB / 0.493 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006317/0.4092, allocations: 3.597 MB / 0.4965 GB, free: 12.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.4092, allocations: 12.44 kB / 0.4965 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/0.4093, allocations: 19.94 kB / 0.4965 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002092/0.4114, allocations: 0.7981 MB / 0.4973 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.4131, allocations: 467.2 kB / 0.4978 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.4244, allocations: 11.18 MB / 0.5087 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.4264, allocations: 123.8 kB / 0.5088 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000274/0.4267, allocations: 80.05 kB / 0.5089 GB, free: 15.55 MB / 446.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.002235/0.429, allocations: 1.098 MB / 0.5099 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006935/0.4297, allocations: 258.3 kB / 0.5102 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006262/0.4359, allocations: 3.305 MB / 0.5134 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.436, allocations: 16 kB / 0.5134 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-05/0.436, allocations: 8 kB / 0.5134 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.986e-05/0.436, allocations: 15.94 kB / 0.5135 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/0.4496, allocations: 6.852 MB / 0.5202 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.4497, allocations: 0 / 0.5202 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.451, allocations: 299.8 kB / 0.5204 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002547/0.4536, allocations: 0.9197 MB / 0.5213 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001774/0.4538, allocations: 39.98 kB / 0.5214 GB, free: 2.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/0.4681, allocations: 14.63 MB / 0.5357 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.4681, allocations: 7.969 kB / 0.5357 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.233/0.7012, allocations: 4.86 MB / 0.5404 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/0.7029, allocations: 0.582 MB / 0.541 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003877/0.7033, allocations: 38.61 kB / 0.541 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.7046, allocations: 119.4 kB / 0.5411 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004322/0.7051, allocations: 155.6 kB / 0.5413 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.7052, allocations: 50.97 kB / 0.5413 GB, free: 121.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002358/0.7075, allocations: 1.642 MB / 0.5429 GB, free: 121.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7076, allocations: 0 / 0.5429 GB, free: 121.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001987/0.7096, allocations: 0.7117 MB / 0.5436 GB, free: 121.2 MB / 462.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.0004137/0.71, allocations: 201.9 kB / 0.5438 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004457/0.7144, allocations: 3.6 MB / 0.5473 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.7145, allocations: 5.312 kB / 0.5473 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002857/0.7173, allocations: 2.507 MB / 0.5498 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.7201, allocations: 0.7148 MB / 0.5505 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008907/0.7291, allocations: 6.864 MB / 0.5572 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.7307, allocations: 2.52 MB / 0.5597 GB, free: 112.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001492/0.7322, allocations: 0.5951 MB / 0.5602 GB, free: 112 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/0.7326, allocations: 155.3 kB / 0.5604 GB, free: 111.9 MB / 462.1 MB Notification: Performance of SimCode: time 6.02e-07/0.7326, allocations: 0 / 0.5604 GB, free: 111.9 MB / 462.1 MB Notification: Performance of Templates: time 0.05305/0.7857, allocations: 40.71 MB / 0.6001 GB, free: 72.04 MB / 462.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins/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