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.0009493/0.0009493, allocations: 95.48 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009664/0.0009665, allocations: 207.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.7 MB / 247.5 MB, free: 9.512 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002246, allocations: 4 kB / 308.4 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09298, allocations: 51.52 MB / 359.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01003/0.103, allocations: 9.725 MB / 369.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005841/0.1089, allocations: 3.221 MB / 372.9 MB, free: 76 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001416/0.1104, allocations: 47.75 kB / 372.9 MB, free: 28 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1783/0.2887, allocations: 0.5998 MB / 373.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003418/0.2922, allocations: 0.8106 MB / 374.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.2934, allocations: 374.5 kB / 374.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005494/0.2989, allocations: 3.903 MB / 378.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002799/0.3017, allocations: 2.186 MB / 380.8 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002228/0.3039, allocations: 1.135 MB / 381.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.3072, allocations: 1.578 MB / 383.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009766/0.3082, allocations: 163.3 kB / 383.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.3101, allocations: 276.4 kB / 383.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001708/0.3118, allocations: 0.8258 MB / 384.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003297/0.3151, allocations: 1.502 MB / 386.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004758/0.3199, allocations: 4.178 MB / 390.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3199, allocations: 0 / 390.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3199, allocations: 0 / 390.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001612/0.3201, allocations: 1 kB / 390.4 MB, free: 4.906 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.006896/0.327, allocations: 3.01 MB / 393.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.327, allocations: 13.62 kB / 393.4 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001497/0.3285, allocations: 388.2 kB / 393.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003248/0.3318, allocations: 1.887 MB / 395.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.332, allocations: 199.5 kB / 395.9 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005531/0.3326, allocations: 254.8 kB / 396.2 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006189/0.3388, allocations: 3.56 MB / 399.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.739e-05/0.3389, allocations: 6.781 kB / 399.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.3391, allocations: 105.3 kB / 399.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.3392, allocations: 110.5 kB / 399.9 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005465/0.3447, allocations: 3.122 MB / 403.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01939/0.3641, allocations: 10.94 MB / 414 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003721/0.3679, allocations: 3.098 MB / 417.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002358/0.3703, allocations: 1.394 MB / 418.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002872/0.3706, allocations: 126.4 kB / 418.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001948/0.3725, allocations: 1.16 MB / 419.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 4.378e-06/0.3726, allocations: 0 / 419.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02113/0.3937, allocations: 9.004 MB / 428.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3938, allocations: 180.2 kB / 428.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003248/0.3971, allocations: 1.845 MB / 430.8 MB, free: 68 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002249/0.3974, allocations: 57.7 kB / 430.8 MB, free: 4 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.3985, allocations: 1.205 MB / 432.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005447/0.3991, allocations: 0.5582 MB / 432.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/0.3994, allocations: 169.6 kB / 432.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.3995, allocations: 301.1 kB / 433.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.4012, allocations: 1.019 MB / 434.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.4032, allocations: 1.443 MB / 435.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003537/0.4067, allocations: 2.474 MB / 438 MB, free: 8.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.4067, allocations: 5.031 kB / 438 MB, free: 8.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005948/0.4127, allocations: 3.361 MB / 441.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.4127, allocations: 12 kB / 441.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.4128, allocations: 8 kB / 441.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002159/0.4149, allocations: 0.8807 MB / 442.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.4163, allocations: 343.4 kB / 442.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.4276, allocations: 9.564 MB / 452.2 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.4297, allocations: 155.8 kB / 452.3 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003475/0.4301, allocations: 71.92 kB / 452.4 MB, free: 9.723 MB / 366.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.002302/0.4324, allocations: 0.9294 MB / 453.3 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006447/0.4331, allocations: 209.4 kB / 453.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006089/0.4392, allocations: 3.13 MB / 456.7 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.4392, allocations: 16 kB / 456.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.529e-05/0.4393, allocations: 8 kB / 456.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.4393, allocations: 7.969 kB / 456.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.4525, allocations: 6.304 MB / 463 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.4526, allocations: 7.938 kB / 463 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009857/0.4535, allocations: 211.7 kB / 463.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/0.456, allocations: 0.9312 MB / 464.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002348/0.4562, allocations: 35.98 kB / 464.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01286/0.4691, allocations: 11.02 MB / 475.2 MB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4692, allocations: 8.062 kB / 475.2 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007981/0.4771, allocations: 4.54 MB / 479.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.4784, allocations: 0.4906 MB / 480.2 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006184/0.4791, allocations: 47.92 kB / 480.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.4805, allocations: 115.8 kB / 480.4 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005227/0.481, allocations: 200.9 kB / 480.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.4811, allocations: 48 kB / 480.6 MB, free: 12.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.4836, allocations: 1.267 MB / 481.9 MB, free: 11.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4836, allocations: 0 / 481.9 MB, free: 11.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002731/0.4864, allocations: 0.6328 MB / 482.5 MB, free: 10.86 MB / 398.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.0004891/0.4869, allocations: 209.2 kB / 482.7 MB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005488/0.4924, allocations: 3.274 MB / 486 MB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.4924, allocations: 4.125 kB / 486 MB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003767/0.4962, allocations: 2.218 MB / 488.2 MB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004224/0.5004, allocations: 0.5338 MB / 488.8 MB, free: 4.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.5124, allocations: 7.014 MB / 495.8 MB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/0.515, allocations: 2.157 MB / 497.9 MB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007313/0.5158, allocations: 139.4 kB / 498.1 MB, free: 11.06 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5158, allocations: 0 / 498.1 MB, free: 11.06 MB / 414.1 MB Notification: Performance of Templates: time 0.2711/0.7869, allocations: 102.8 MB / 0.5868 GB, free: 104.4 MB / 446.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