Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 113.6 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002015/0.002015, allocations: 202.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2984, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.0119/0.3104, allocations: 10.33 MB / 420.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007058/0.3175, allocations: 3.276 MB / 423.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001561/0.3191, allocations: 59.75 kB / 423.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.3209, allocations: 0.6947 MB / 424.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002924/0.3239, allocations: 0.8815 MB / 425.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.3249, allocations: 419.5 kB / 425.6 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00402/0.3289, allocations: 3.42 MB / 429 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.332, allocations: 2.608 MB / 431.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002606/0.3346, allocations: 1.53 MB / 433.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.3378, allocations: 1.856 MB / 435 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006534/0.3384, allocations: 396 kB / 435.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.3396, allocations: 499.8 kB / 435.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.3407, allocations: 1.11 MB / 437 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001919/0.3426, allocations: 1.781 MB / 438.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005469/0.3481, allocations: 5.23 MB / 444 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.3481, allocations: 0 / 444 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.3481, allocations: 0 / 444 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001247/0.3483, allocations: 3.938 kB / 444 MB, free: 15.34 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.008132/0.3564, allocations: 3.535 MB / 447.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3565, allocations: 12.03 kB / 447.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001191/0.3576, allocations: 384.9 kB / 447.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003633/0.3613, allocations: 1.941 MB / 449.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.3615, allocations: 197 kB / 450.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000358/0.3618, allocations: 259.9 kB / 450.3 MB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005664/0.3675, allocations: 3.535 MB / 453.9 MB, free: 5.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.205e-05/0.3676, allocations: 7.938 kB / 453.9 MB, free: 5.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.3678, allocations: 108 kB / 454 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.368, allocations: 112.9 kB / 454.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005104/0.3731, allocations: 3.087 MB / 457.2 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01812/0.3912, allocations: 10.74 MB / 467.9 MB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003787/0.3951, allocations: 3.074 MB / 471 MB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002225/0.3973, allocations: 1.392 MB / 472.4 MB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002747/0.3976, allocations: 130.3 kB / 472.5 MB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/0.3994, allocations: 1.152 MB / 473.6 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.547e-06/0.3994, allocations: 3.938 kB / 473.6 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02087/0.4203, allocations: 8.88 MB / 482.5 MB, free: 7.871 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.4204, allocations: 180.2 kB / 482.7 MB, free: 7.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/0.4242, allocations: 1.848 MB / 484.6 MB, free: 5.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000244/0.4245, allocations: 53.7 kB / 484.6 MB, free: 5.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.426, allocations: 1.199 MB / 485.8 MB, free: 4.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007428/0.4268, allocations: 0.5623 MB / 486.4 MB, free: 3.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008216/0.4276, allocations: 355.3 kB / 486.7 MB, free: 3.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4278, allocations: 305.1 kB / 487 MB, free: 3.312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001797/0.4296, allocations: 1.003 MB / 488 MB, free: 2.309 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002073/0.4317, allocations: 1.434 MB / 489.4 MB, free: 0.7148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004282/0.436, allocations: 2.45 MB / 491.9 MB, free: 14.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/0.436, allocations: 0 / 491.9 MB, free: 14.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006558/0.4426, allocations: 3.33 MB / 495.2 MB, free: 10.76 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.4426, allocations: 8 kB / 495.2 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-05/0.4427, allocations: 12 kB / 495.2 MB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/0.4449, allocations: 0.8925 MB / 496.1 MB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.4462, allocations: 335.5 kB / 496.5 MB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/0.4593, allocations: 10.42 MB / 0.495 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.4615, allocations: 131.9 kB / 0.4951 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003783/0.4619, allocations: 68 kB / 0.4952 GB, free: 14.47 MB / 430.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: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * 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%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002307/0.4642, allocations: 0.9292 MB / 0.4961 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007113/0.4649, allocations: 213.3 kB / 0.4963 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006073/0.471, allocations: 3.115 MB / 0.4994 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.42e-05/0.4711, allocations: 16 kB / 0.4994 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-05/0.4711, allocations: 12 kB / 0.4994 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.4712, allocations: 7.969 kB / 0.4994 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01392/0.4851, allocations: 6.21 MB / 0.5055 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.4851, allocations: 4 kB / 0.5055 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009701/0.4861, allocations: 207.7 kB / 0.5057 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00242/0.4886, allocations: 0.9368 MB / 0.5066 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/0.4887, allocations: 43.97 kB / 0.5066 GB, free: 2.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01397/0.5027, allocations: 12.01 MB / 0.5183 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5028, allocations: 0 / 0.5183 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007606/0.5104, allocations: 4.515 MB / 0.5227 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001523/0.5119, allocations: 498.4 kB / 0.5232 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005238/0.5125, allocations: 43.98 kB / 0.5233 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.5138, allocations: 99.89 kB / 0.5234 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005302/0.5143, allocations: 197.3 kB / 0.5235 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.5145, allocations: 51.92 kB / 0.5236 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002317/0.5168, allocations: 1.271 MB / 0.5248 GB, free: 15.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5168, allocations: 0 / 0.5248 GB, free: 15.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00241/0.5192, allocations: 0.6406 MB / 0.5255 GB, free: 14.68 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (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) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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%), (9,25,33.3%), (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.0004697/0.5197, allocations: 212.5 kB / 0.5257 GB, free: 14.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005304/0.525, allocations: 3.257 MB / 0.5288 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.525, allocations: 0 / 0.5288 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003528/0.5286, allocations: 2.196 MB / 0.531 GB, free: 8.852 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/0.5322, allocations: 0.5785 MB / 0.5316 GB, free: 8.281 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.5432, allocations: 5.7 MB / 0.5371 GB, free: 2.527 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002406/0.5456, allocations: 2.157 MB / 0.5392 GB, free: 340 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007336/0.5463, allocations: 151.3 kB / 0.5394 GB, free: 188 kB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5464, allocations: 0 / 0.5394 GB, free: 188 kB / 462.1 MB Notification: Performance of Templates: time 0.2673/0.8137, allocations: 103.8 MB / 0.6407 GB, free: 30.84 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches