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.001078/0.001078, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001112, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3765, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01403/0.3906, allocations: 10.33 MB / 420.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007381/0.398, allocations: 3.276 MB / 423.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.4001, allocations: 55.75 kB / 423.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002437/0.4026, allocations: 0.6986 MB / 424.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.406, allocations: 0.8854 MB / 425.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.4074, allocations: 415.5 kB / 425.6 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004728/0.4121, allocations: 3.42 MB / 429 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004025/0.4162, allocations: 2.596 MB / 431.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/0.419, allocations: 1.534 MB / 433.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00438/0.4234, allocations: 1.856 MB / 435 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.4246, allocations: 400 kB / 435.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.4264, allocations: 499.8 kB / 435.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001638/0.4281, allocations: 1.103 MB / 437 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003532/0.4316, allocations: 1.785 MB / 438.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007947/0.4396, allocations: 5.238 MB / 444 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.4397, allocations: 4 kB / 444 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4397, allocations: 0 / 444 MB, free: 15.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.4398, allocations: 0 / 444 MB, free: 15.33 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.01168/0.4515, allocations: 3.539 MB / 447.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.4516, allocations: 8.031 kB / 447.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/0.4536, allocations: 380.9 kB / 447.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005648/0.4593, allocations: 1.949 MB / 449.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002798/0.4596, allocations: 193 kB / 450.1 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008197/0.4604, allocations: 263.9 kB / 450.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00925/0.4697, allocations: 3.535 MB / 453.9 MB, free: 5.246 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.751e-05/0.4698, allocations: 4 kB / 453.9 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003708/0.4702, allocations: 104 kB / 454 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001786/0.4704, allocations: 116.9 kB / 454.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008488/0.4789, allocations: 3.091 MB / 457.2 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.4988, allocations: 10.74 MB / 467.9 MB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.5025, allocations: 3.066 MB / 471 MB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/0.5048, allocations: 1.4 MB / 472.4 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/0.5051, allocations: 126.4 kB / 472.5 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001757/0.5068, allocations: 1.148 MB / 473.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 4.429e-06/0.5068, allocations: 0 / 473.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.01985/0.5267, allocations: 8.878 MB / 482.5 MB, free: 7.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.5268, allocations: 180.2 kB / 482.7 MB, free: 7.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002737/0.5296, allocations: 1.848 MB / 484.5 MB, free: 5.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001996/0.5298, allocations: 53.7 kB / 484.6 MB, free: 5.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.531, allocations: 1.203 MB / 485.8 MB, free: 4.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005864/0.5315, allocations: 0.5584 MB / 486.4 MB, free: 3.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005907/0.5321, allocations: 355.3 kB / 486.7 MB, free: 3.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.5323, allocations: 301.1 kB / 487 MB, free: 3.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.5339, allocations: 1.011 MB / 488 MB, free: 2.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/0.5357, allocations: 1.426 MB / 489.4 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.5391, allocations: 2.454 MB / 491.9 MB, free: 14.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.5391, allocations: 4 kB / 491.9 MB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005601/0.5447, allocations: 3.326 MB / 495.2 MB, free: 10.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.5448, allocations: 15.12 kB / 495.2 MB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.5448, allocations: 8 kB / 495.2 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/0.5468, allocations: 0.8917 MB / 496.1 MB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.5481, allocations: 339.4 kB / 496.5 MB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.5604, allocations: 10.43 MB / 0.495 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.5622, allocations: 127.9 kB / 0.4951 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001699/0.5624, allocations: 71.98 kB / 0.4952 GB, free: 14.45 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.001483/0.5639, allocations: 0.9252 MB / 0.4961 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003937/0.5643, allocations: 209.4 kB / 0.4963 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/0.5694, allocations: 3.115 MB / 0.4994 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.5695, allocations: 16 kB / 0.4994 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/0.5695, allocations: 8 kB / 0.4994 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.5695, allocations: 7.969 kB / 0.4994 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.5805, allocations: 6.21 MB / 0.5055 GB, free: 3.816 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.5805, allocations: 4.281 kB / 0.5055 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008812/0.5814, allocations: 215.7 kB / 0.5057 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/0.5837, allocations: 0.9289 MB / 0.5066 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001439/0.5839, allocations: 43.97 kB / 0.5066 GB, free: 2.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/0.597, allocations: 12.01 MB / 0.5183 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.381e-06/0.5971, allocations: 4.188 kB / 0.5183 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00733/0.6044, allocations: 4.515 MB / 0.5227 GB, free: 1.469 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.6059, allocations: 0.5022 MB / 0.5232 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/0.6063, allocations: 39.98 kB / 0.5233 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.6073, allocations: 99.89 kB / 0.5234 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004803/0.6078, allocations: 200.9 kB / 0.5236 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6079, allocations: 47.98 kB / 0.5236 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001995/0.6099, allocations: 1.267 MB / 0.5248 GB, free: 15.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.61, allocations: 0 / 0.5248 GB, free: 15.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002257/0.6122, allocations: 0.6367 MB / 0.5255 GB, free: 14.67 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.0004637/0.6127, allocations: 204.7 kB / 0.5257 GB, free: 14.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005185/0.6179, allocations: 3.257 MB / 0.5288 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/0.6179, allocations: 0 / 0.5288 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003342/0.6213, allocations: 2.199 MB / 0.531 GB, free: 8.844 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/0.624, allocations: 0.5707 MB / 0.5315 GB, free: 8.277 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009926/0.634, allocations: 5.711 MB / 0.5371 GB, free: 2.516 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002007/0.636, allocations: 2.157 MB / 0.5392 GB, free: 328 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007199/0.6368, allocations: 139.4 kB / 0.5394 GB, free: 188 kB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6368, allocations: 0 / 0.5394 GB, free: 188 kB / 462.1 MB Notification: Performance of Templates: time 0.2961/0.9329, allocations: 103.5 MB / 0.6404 GB, free: 31.14 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